ESRI.ArcGIS.ADF.Web.UI.WebControls
CreateResourceInstance Method
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > DataSourceManager Class : CreateResourceInstance Method




resourceName
Name of resource
resourceDefinition
Resource definition string
dataSourceType
Type of data source
resourceType
Type of resource
Creates a resource instance based upon data source configuration from .config files

Syntax

Visual Basic (Declaration) 
Public Function CreateResourceInstance( _
   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 resourceName As String
Dim resourceDefinition As String
Dim dataSourceType As String
Dim resourceType As String
Dim value As IGISResource
 
value = instance.CreateResourceInstance(resourceName, resourceDefinition, dataSourceType, resourceType)
C# 
public IGISResource CreateResourceInstance( 
   string resourceName,
   string resourceDefinition,
   string dataSourceType,
   string resourceType
)

Parameters

resourceName
Name of resource
resourceDefinition
Resource definition string
dataSourceType
Type of data source
resourceType
Type of resource

Return Value

Created resource

Remarks

Does not add resource to datasource. Use AddResourceInstanceToDataSource for that purpose.

See Also

© 2010 All Rights Reserved.