ESRI.ArcGIS.ADF.Web.UI.WebControls | |
IMapServerCommandAction Interface | |
Members See Also |
ESRI.ArcGIS.ADF.Web.UI.WebControls.Tools Namespace : IMapServerCommandAction Interface |
Visual Basic (Declaration) | |
---|---|
Public Interface IMapServerCommandAction Inherits IServerAction |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public interface IMapServerCommandAction : IServerAction |
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).