![]() ![]() |
ESRI.ArcGIS.ADF.Web.UI.WebControls | |
IMapServerCommandAction Interface | |
Members See Also Send Feedback |
ESRI.ArcGIS.ADF.Web.UI.WebControls.Tools Namespace : IMapServerCommandAction Interface |
Visual Basic (Declaration) | |
---|---|
Public Interface IMapServerCommandAction Inherits IServerAction |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As IMapServerCommandAction |
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).
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