ESRI.ArcGIS.ADF.Web.UI.WebControls
RemoveOnlyContextMenu Property
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > TaskResults Class : RemoveOnlyContextMenu Property




A context menu that displays the choice to remove the associated node.

Syntax

Visual Basic (Declaration) 
<BrowsableAttribute(False)>
Public ReadOnly Property RemoveOnlyContextMenu As ContextMenu
Visual Basic (Usage)Copy Code
Dim instance As TaskResults
Dim value As ContextMenu
 
value = instance.RemoveOnlyContextMenu
C# 
[BrowsableAttribute(false)]
public ContextMenu RemoveOnlyContextMenu {get;}

Remarks

This context menu is used with the task results items in TaskResults. If an error occurs running the task, this context menu displays when right-clicking on the SimpleTaskResult node that displays the error message to the user. The RemoveOnlyContextMenu is also used when a task's results are not a GraphicLayer but instead simply contain a standard DataSet with standard DataTable object(s).

By default, the RemoveOnlyContextMenu has only the choice to remove the node. The items may be modified programmatically by accessing this property at runtime. On session startup, these items may be accessed at the PreRenderComplete stage. If modifying items during a callback, the CallbackResults would have to be set to replace the content of the context menu.

See Also

© 2010 All Rights Reserved.