ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer
ToResourceDefinition(String,String,String,Int32) Method
See Also 
ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer Namespace > MapResourceBase Class > ToResourceDefinition Method : ToResourceDefinition(String,String,String,Int32) Method




service
Name of the map service (e.g., "MyMapService").
dataFrame
Data frame name.
layerSourceID
Layer source ID.
layerID
Layer ID.
Serializes a resource definition to a string.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function ToResourceDefinition( _
   ByVal service As String, _
   ByVal dataFrame As String, _
   ByVal layerSourceID As String, _
   ByVal layerID As Integer _
) As String
Visual Basic (Usage)Copy Code
Dim service As String
Dim dataFrame As String
Dim layerSourceID As String
Dim layerID As Integer
Dim value As String
 
value = MapResourceBase.ToResourceDefinition(service, dataFrame, layerSourceID, layerID)
C# 
public static string ToResourceDefinition( 
   string service,
   string dataFrame,
   string layerSourceID,
   int layerID
)

Parameters

service
Name of the map service (e.g., "MyMapService").
dataFrame
Data frame name.
layerSourceID
Layer source ID.
layerID
Layer ID.

Return Value

Serialized string version of the resource definition.

See Also

© 2010 All Rights Reserved.