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


Adds (or updates an existing) context menu to this session document
Syntax
'Declaration
 
Public Function Add( _
   ByVal menu As IContextMenu _
) As Boolean
'Usage
 
Dim instance As ContextMenus
Dim menu As IContextMenu
Dim value As Boolean
 
value = instance.Add(menu)
public bool Add( 
   IContextMenu menu
)

Parameters

menu
The context menu to add

Return Value

True if the add or update was successful, false if an error occurred
Exceptions
ExceptionDescription
System.ArgumentNullExceptionIf the name passed is null or empty
System.InvalidOperationExceptionIf the ContextMenus object is not available or in an error state
Requirements

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

Reference

ContextMenus Class
ContextMenus Members

Send Feedback