ESRI.ArcGIS.ADF.Web.UI.WebControls
RemoveOnlyContextMenu Property
See Also  Send Feedback
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.

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.