ESRI.ArcGIS.ADF.Web.UI.WebControls
AddDataSourceInstance Method
See Also  Send Feedback
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > DataSourceManager Class : AddDataSourceInstance Method




type
Type of datasource
name
Name of data source
identity
Identity to use to access the data source, if specified.
definition
Data source definition string
Creates datasource instance. Adds it to the DataSources property. Loads datasource state.

Syntax

Visual Basic (Declaration) 
Public Function AddDataSourceInstance( _
   ByVal type As String, _
   ByVal name As String, _
   ByVal identity As String, _
   ByVal definition As String _
) As ESRI.ArcGIS.ADF.Web.DataSources.IGISDataSource
Visual Basic (Usage)Copy Code
Dim instance As DataSourceManager
Dim type As String
Dim name As String
Dim identity As String
Dim definition As String
Dim value As ESRI.ArcGIS.ADF.Web.DataSources.IGISDataSource
 
value = instance.AddDataSourceInstance(type, name, identity, definition)
C# 
public ESRI.ArcGIS.ADF.Web.DataSources.IGISDataSource AddDataSourceInstance( 
   string type,
   string name,
   string identity,
   string definition
)

Parameters

type
Type of datasource
name
Name of data source
identity
Identity to use to access the data source, if specified.
definition
Data source definition string

Return Value

Created datasource

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.