ESRI.ArcGIS.ADF.Web.UI.WebControls | |
ServerAction Method | |
See Also |
ESRI.ArcGIS.ADF.Web.UI.WebControls.Tools Namespace > IServerAction Interface : ServerAction Method |
- info
- Information about the tool bar item for which this server action takes place.
Visual Basic (Declaration) | |
---|---|
Sub ServerAction( _ ByVal info As ToolbarItemInfo _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
void ServerAction( ToolbarItemInfo info ) |
Parameters
- info
- Information about the tool bar item for which this server action takes place.
Classes that will be used as the ServerActionClass for a toolbar item must implement this method. The method performs the action on the server on behalf of the command or drop-down box. The action can include operations on the Map, querying a database, or any other server-side operation.
The ToolbarItemInfo that is passed as the argument to the ServerAction method contains information about:
- the Name of the item on the toolbar
- a reference to the Toolbar to which the item belongs
- the web controls buddied to the toolbar, usually a Map or PageLayout
This information can be used to do such tasks as finding the command or drop-down box on the toolbar, or getting a reference to the Map in order to set its extent, perform a query, etc.