| Visual Basic (Declaration) | |
|---|---|
Public Function GetFunctionalities() As IEnumerable | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| C# | |
|---|---|
public IEnumerable GetFunctionalities() | |
Return Value
This method returns the IMapFunctionalityA collection of map functionalities associated with the Map and its resources.
| C# | Copy Code |
|---|---|
foreach (IMapFunctionality mapFunct in Map1.GetFunctionalities()) | |
| Visual Basic | Copy Code |
|---|---|
Dim mapFunct As IMapFunctionality | |
This method returns a collection of IMapFunctionality objects that may be used to work with the map. The Map control creates these 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. 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 functionalities when GetFunctionalities() is called. Since initialization involves requesting information from the GIS server for the resource, you should call this method only when you need to obtain the entire functionality collection. If you need only one map functionality, call one of the GetFunctionality() methods instead.
If you create other types of functionalities, they will not appear in the GetFunctionalities() collection. For example, if you call MapResourceInternet.CreateFunctionality() and create a query functionality (IQueryFunctionality), this functionality object will not be included in the collection of functionalities returned by a subsequent call to GetFunctionalities().
Target Platforms:Windows XP Professional, Windows Server 2003 family