InfoConnect for Unisys
Attachmate.Reflection.Emulation.OpenSystems Namespace / ContextMenus Class / Add Method


In This Topic
    Add Method (ContextMenus)
    In This Topic
    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
    If the name passed is null or empty
    If the ContextMenus object is not available or in an error state
    See Also