Attachmate Reflection 2014 .NET API Reference
Remove Method (ContextMenus)

The descriptive name of the menu to remove
Removes a context menu from this session document
Public Function Remove( _
   ByVal name As String _
) As Boolean
Dim instance As ContextMenus
Dim name As String
Dim value As Boolean
value = instance.Remove(name)
public bool Remove( 
   string name


The descriptive name of the menu to remove

Return Value

True if the remove was successful, false if the menu name could not be found or an error occurred
System.ArgumentNullExceptionIf the name passed is null
System.ArgumentExceptionIf the name passed corresponds to the default menu, which cannot be deleted. This can be represented by an empty string, or the ContextMenu.DefaultMenuName constant
System.InvalidOperationExceptionIf the ContextMenus object is not available or in an error state

Target Platforms: Microsoft Windows 7, Microsoft Windows Vista, Microsoft Windows XP, Microsoft Windows Server 2003 Terminal Services, Microsoft Windows Server 2008 Terminal Services

See Also


ContextMenus Class
ContextMenus Members

Send Feedback