ESRI.ArcGIS.ADF.Web.UI.WebControls
AddResourceInstanceToDataSource Method
See Also 
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 IGISDataSource, _
   ByVal resourceName As String, _
   ByVal resourceDefinition As String, _
   ByVal dataSourceType As String, _
   ByVal resourceType As String _
) As IGISResource
Visual Basic (Usage)Copy Code
Dim instance As DataSourceManager
Dim datasource As IGISDataSource
Dim resourceName As String
Dim resourceDefinition As String
Dim dataSourceType As String
Dim resourceType As String
Dim value As IGISResource
 
value = instance.AddResourceInstanceToDataSource(datasource, resourceName, resourceDefinition, dataSourceType, resourceType)
C# 
public IGISResource AddResourceInstanceToDataSource( 
   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

See Also

© 2010 All Rights Reserved.