ESRI.ArcGIS.ADF.Web.UI.WebControls
CreateResourceInstance Method
See Also  Send Feedback
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 ESRI.ArcGIS.ADF.Web.DataSources.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 ESRI.ArcGIS.ADF.Web.DataSources.IGISResource
 
value = instance.CreateResourceInstance(resourceName, resourceDefinition, dataSourceType, resourceType)
C# 
public ESRI.ArcGIS.ADF.Web.DataSources.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.

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.