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


The descriptive name of the menu. If null or empty string is passed, this is equivalent to the default menu.
Returns the context menu associated with the specified descriptive name.
Syntax
'Declaration
 
Public Function ItemByName( _
   ByVal name As String _
) As IContextMenu
'Usage
 
Dim instance As ContextMenus
Dim name As String
Dim value As IContextMenu
 
value = instance.ItemByName(name)
public IContextMenu ItemByName( 
   string name
)

Parameters

name
The descriptive name of the menu. If null or empty string is passed, this is equivalent to the default menu.

Return Value

The context menu associated with name, or null if it does not exist
Exceptions
ExceptionDescription
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