![]() ![]() |
ESRI.ArcGIS.ADF.Web.UI.WebControls | |
GetFunctionality(Int32) Method | |
See Also Send Feedback |
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.
Visual Basic (Declaration) | |
---|---|
Public Overloads Function GetFunctionality( _ ByVal resourceItemIndex As Integer _ ) As ESRI.ArcGIS.ADF.Web.DataSources.IMapFunctionality |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As Map Dim resourceItemIndex As Integer Dim value As ESRI.ArcGIS.ADF.Web.DataSources.IMapFunctionality value = instance.GetFunctionality(resourceItemIndex) |
C# | |
---|---|
public ESRI.ArcGIS.ADF.Web.DataSources.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.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.
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