InfoConnect for Unisys
Attachmate.Reflection.Emulation.Common Namespace / KeyboardMapper Class / RemoveMapping Method / RemoveMapping(Keys) Method
The key mapping to remove.
Example


In This Topic
    RemoveMapping(Keys) Method
    In This Topic
    Removes a key mapping from the keyboard map.
    Syntax
    'Declaration
     
    
    Public Overloads Sub RemoveMapping( _
       ByVal key As Keys _
    ) 
    'Usage
     
    
    Dim instance As KeyboardMapper
    Dim key As Keys
     
    instance.RemoveMapping(key)
    public void RemoveMapping( 
       Keys key
    )

    Parameters

    key
    The key mapping to remove.
    Remarks
    Use this method only to remove non-extended keys.
    Example
    private IUtsTerminal terminal;
    private IKeyboardMapper mapper;
                
    public void RemoveMap(Keys key)
    {
       if(terminal != null)
       {
          mapper = terminal.KeyboardMapper;
          mapper.RemoveMapping(key);
       }
       else
          Console.Writeline("No terminal exists.");
    }
    See Also