ESRI.ArcGIS.ADF.Web.UI.WebControls
FromMapResourceManager(Page,String,String,String) Method
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > LayerDefinition Class > FromMapResourceManager Method : FromMapResourceManager(Page,String,String,String) Method




page
The page on which the map resource manager exists.
mapResourceManager
The Unique ID of the map resource manager
mapResource
The name of the map resource
layerID
The id of the layer
Gets the layer definition defined in a map resource manager for a layer in a map resource after updating layer definitions to account for changes to service if this has not been done yet during this session.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function FromMapResourceManager( _
   ByVal page As Page, _
   ByVal mapResourceManager As String, _
   ByVal mapResource As String, _
   ByVal layerID As String _
) As LayerDefinition
Visual Basic (Usage)Copy Code
Dim page As Page
Dim mapResourceManager As String
Dim mapResource As String
Dim layerID As String
Dim value As LayerDefinition
 
value = LayerDefinition.FromMapResourceManager(page, mapResourceManager, mapResource, layerID)
C# 
public static LayerDefinition FromMapResourceManager( 
   Page page,
   string mapResourceManager,
   string mapResource,
   string layerID
)

Parameters

page
The page on which the map resource manager exists.
mapResourceManager
The Unique ID of the map resource manager
mapResource
The name of the map resource
layerID
The id of the layer

Return Value

The layer definition for the layer in the map resource.

See Also

© 2010 All Rights Reserved.