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


The descriptive name of the menu. If null or empty string is passed, this is equivalent to the default menu.
Returns a value indicating whether a context menu of a given name exists in this session document.
Syntax
'Declaration
 
Public Function Contains( _
   ByVal name As String _
) As Boolean
'Usage
 
Dim instance As ContextMenus
Dim name As String
Dim value As Boolean
 
value = instance.Contains(name)
public bool Contains( 
   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

True if the menu exists, false if it does not
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