ESRI.ArcGIS.ADF.Web.UI.WebControls
InitializeFunctionality Method
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > Map Class : InitializeFunctionality Method




mapResourceItem
The resource item to add functionality for.
Initializes a functionality after creating it for the passed in resource item object. Call this method if you add a map resource item programmatically to the MapResourceManager or change a resource item programmatically.

Syntax

Visual Basic (Declaration) 
Public Sub InitializeFunctionality( _
   ByVal mapResourceItem As MapResourceItem _
) 
Visual Basic (Usage)Copy Code
Dim instance As Map
Dim mapResourceItem As MapResourceItem
 
instance.InitializeFunctionality(mapResourceItem)
C# 
public void InitializeFunctionality( 
   MapResourceItem mapResourceItem
)

Parameters

mapResourceItem
The resource item to add functionality for.

Remarks

Initialization of functionalities retrieves the data required to use the map functionalities and populates the functionality objects with the required information.

As of the Service Pack 1 of the 9.2 version of the Web ADF, initialization does not necessarily take place on every page postback or callback. Before accessing and using a functionality, you should ensure that it is initialized.

Initialization causes the Web ADF page to contact the GIS server that provides the services used. This takes time and consumes network and server resources. Hence, you should only initialize functionalities that you will actually work with during that callback or postback.

See Also

© 2010 All Rights Reserved.