ESRI.ArcGIS.ADF.Web.UI.WebControls
GetFunctionality(Int32) Method
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > Map Class > GetFunctionality Method : GetFunctionality(Int32) Method




resourceItemIndex
Index of the resource in the MapResourceManager associated with the Map. Index is zero-based.
Obtains one map functionality associated with the Map and its resources.

Syntax

Visual Basic (Declaration) 
Public Overloads Function GetFunctionality( _
   ByVal resourceItemIndex As Integer _
) As IMapFunctionality
Visual Basic (Usage)Copy Code
Dim instance As Map
Dim resourceItemIndex As Integer
Dim value As IMapFunctionality
 
value = instance.GetFunctionality(resourceItemIndex)
C# 
public IMapFunctionality GetFunctionality( 
   int resourceItemIndex
)

Parameters

resourceItemIndex
Index of the resource in the MapResourceManager associated with the Map. Index is zero-based.

Return Value

Map functionality associated with the resource at the index passed in.

Remarks

This method returns one IMapFunctionality object that may be used to work with the map. The Map control creates functionality objects from the resources (services) that were added to the MapResourceManager associated with the Map.

The number of map functionalities will be the same as the number of map resources (services) added to the MapResourceManager buddied to the Map. Resources and functionalities are indexed based on the order in which they appear in the MapResourceManager. Hence GetFunctionality(0) will return the map functionality derived from the first resource (service) listed in the MapResourceManager on the page. This resource will appear at the top of the list in the MapResourceManager designer in Visual Studio.

Each map functionality is an instance of a specific class that implements IMapFunctionality. For example, if an ArcGIS Server service is added to the MapResourceManager, then the corresponding map functionality will be a MapFunctionality object in the ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer assembly.

The Map control will initialize the functionality when GetFunctionality() is called. Initialization involves requesting information from the GIS server for the resource. This request may not occur on every callback or postback. Hence you should call this method only when you need to use the functionality for the resource.

See Also

© 2010 All Rights Reserved.