ESRI.ArcGIS.ADF.ArcGISServer.Editor
PreCommandExecute Event
See Also  Send Feedback
ESRI.ArcGIS.ADF.ArcGISServer.Editor Namespace > EditorTask Class : PreCommandExecute Event




The event raised prior to an EditorCommand's server action execution.

Syntax

Visual Basic (Declaration) 
<ResDescriptionAttribute("Fires before an EditorCommand is executed.")>
<ResCategoryAttribute("Editing")>
Public Event PreCommandExecute As PreCommandExecuteEventHandler
Visual Basic (Usage)Copy Code
Dim instance As EditorTask
Dim handler As PreCommandExecuteEventHandler
 
AddHandler instance.PreCommandExecute, handler
C# 
[ResDescriptionAttribute("Fires before an EditorCommand is executed.")]
[ResCategoryAttribute("Editing")]
public event PreCommandExecuteEventHandler PreCommandExecute

Event Data

The event handler receives an argument of type PreCommandExecuteEventArgs containing data related to this event. The following PreCommandExecuteEventArgs properties provide information specific to this event.

PropertyDescription
Cancel Event handlers can set this to false to cancel the command's execution.
ReturnMessage (Inherited from ESRI.ArcGIS.ADF.ArcGISServer.Editor.Tools.ToolbarItemEventArgs) This can be set by event handlers to display a message in the browser.
ServerAction (Inherited from ESRI.ArcGIS.ADF.ArcGISServer.Editor.Tools.EditorCommandEventArgs) The EditorServerCommandAction that is associated with the EditorCommand.

Requirements

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

See Also

© 2011 All Rights Reserved.