InfoConnect for Airlines
Contains(Keys,Boolean) Method
Example 


The key sequence to query for.
Indicates whether this key is an extended key. For IBM Enhanced 101- and 102-key keyboards, extended keys are the right ALT and the right CTRL keys on the main keyboard; the INS, DEL, HOME, END, PAGE UP, PAGE DOWN, and arrow keys to the left of the numeric keypad; and the slash (/) and ENTER keys in the numeric keypad.
Returns whether the current keyboard map has a mapping for a specified key combination.
Syntax
'Declaration
 
Public Overloads Function Contains( _
   ByVal key As Keys, _
   ByVal isExtendedKey As Boolean _
) As Boolean
'Usage
 
Dim instance As KeyboardMapper
Dim key As Keys
Dim isExtendedKey As Boolean
Dim value As Boolean
 
value = instance.Contains(key, isExtendedKey)
public bool Contains( 
   Keys key,
   bool isExtendedKey
)

Parameters

key
The key sequence to query for.
isExtendedKey
Indicates whether this key is an extended key. For IBM Enhanced 101- and 102-key keyboards, extended keys are the right ALT and the right CTRL keys on the main keyboard; the INS, DEL, HOME, END, PAGE UP, PAGE DOWN, and arrow keys to the left of the numeric keypad; and the slash (/) and ENTER keys in the numeric keypad.

Return Value

True if the current keyboard map contains a mapping for key, false if not.
Example
private IUtsTerminal terminal;
private IKeyboardMapper mapper;
             
public void ContainsMap(Keys key)
{
   if(terminal != null)
   {
      mapper = terminal.KeyboardMapper;
      bool Iscontain = mapper.Contains(key,true);
   }
   else
      Console.Writeline("No terminal exists.");
}
See Also