Attachmate.Reflection.Emulation.Common Namespace > KeyboardMapper Class > Contains Method : Contains(Keys,Boolean) Method |
'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 )
True
if the current keyboard map contains a mapping for key, false
if not.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."); }