ESRI.ArcGIS.ADF.Web.UI.WebControls
IMapServerCommandAction Interface
Members  See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls.Tools Namespace : IMapServerCommandAction Interface




Server action for a command operating on a map. A class that implements this interface may be used as the server-side action for a Command.

Syntax

Visual Basic (Declaration) 
Public Interface IMapServerCommandAction 
   Inherits IServerAction 
Visual Basic (Usage)Copy Code
Dim instance As IMapServerCommandAction
C# 
public interface IMapServerCommandAction : IServerAction  

Remarks

In order for a Command to perform an action on the server for a Map, a class must be created that implements this interface. The Command then sets its ServerActionClass to this class, typically at design time in the toolbar items editor.

The class implements the ServerAction method. This method handles the server-side action. This method receives one argument, a ToolbarItemInfo object. This object contains information about the item, toolbar and buddy controls of the toolbar. The buddy controls collection may be used to obtain a reference to the Map, as discussed at ToolbarItemInfo.BuddyControls.

For an example of using this interface, see the Common_AddCustomTool sample in the SDK Web Applications samples (also available at ArcGIS Resource Center:http).

See Also

© 2010 All Rights Reserved.