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




datasource
Datasource to add to
resourceName
Name of resource
resourceDefinition
Resource definition string
dataSourceType
Type of data source
resourceType
Type of resource
Creates resource instance. Adds it to the data source's Resources property. Loads resource state.

Syntax

Visual Basic (Declaration) 
Public Function AddResourceInstanceToDataSource( _
   ByVal datasource As ESRI.ArcGIS.ADF.Web.DataSources.IGISDataSource, _
   ByVal resourceName As String, _
   ByVal resourceDefinition As String, _
   ByVal dataSourceType As String, _
   ByVal resourceType As String _
) As ESRI.ArcGIS.ADF.Web.DataSources.IGISResource
Visual Basic (Usage)Copy Code
Dim instance As DataSourceManager
Dim datasource As ESRI.ArcGIS.ADF.Web.DataSources.IGISDataSource
Dim resourceName As String
Dim resourceDefinition As String
Dim dataSourceType As String
Dim resourceType As String
Dim value As ESRI.ArcGIS.ADF.Web.DataSources.IGISResource
 
value = instance.AddResourceInstanceToDataSource(datasource, resourceName, resourceDefinition, dataSourceType, resourceType)
C# 
public ESRI.ArcGIS.ADF.Web.DataSources.IGISResource AddResourceInstanceToDataSource( 
   ESRI.ArcGIS.ADF.Web.DataSources.IGISDataSource datasource,
   string resourceName,
   string resourceDefinition,
   string dataSourceType,
   string resourceType
)

Parameters

datasource
Datasource to add to
resourceName
Name of resource
resourceDefinition
Resource definition string
dataSourceType
Type of data source
resourceType
Type of resource

Return Value

Created resource

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.