KeyInfo Members

Represents key information such as the character, virtual key code, the state of any associated control keys, and the state of the key (down).

The following tables list the members exposed by the KeyInfo type.

  Name Description
  KeyInfo Creates a new KeyInfo object that contains the virtual key code, the character, control key state, and a Boolean value that indicates whether the key is in the down (or pressed) state.
Top

  Name Description
public property Character Gets or sets the character of the key.
public property ControlKeyState Gets and sets the state of the control keys that are associated with the key.
public property KeyDown Gets or sets a Boolean value that indicates that the key is in the down (or pressed) position.
public property VirtualKeyCode Gets or sets the virtual key code that identifies the key.
Top

(see also Protected Methods)
 NameDescription
public methodEqualsOverridden. Determines whether the current KeyInfo structure is equal to the specified object.
public methodGetHashCodeOverridden. Gets a hash code for the current KeyInfo structure.
public methodGetType  (Inherited from Object)
public methodstaticEqualityCompares two KeyInfo structures to determine whether their respective character, virtual key code, control key state, and down position values are equal.
public methodstaticInequalityCompares two KeyInfo structures to determine whether their respective character, virtual key code, control key state, and down position values are not equal.
public methodToStringOverridden. Converts the current KeyInfo structure to a string.
Top

(see also Extension Methods)
 NameDescription
protected methodFinalize  (Inherited from Object)
protected methodMemberwiseClone  (Inherited from Object)
Top

  Name Description
public extension method As  Use this method to adapt an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  This is called to adapt an object from a foreign app domain to a known interface in this appDomainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  Adapts an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  Use this method to adapt and extend an object so that you can pass it to a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  This is called to adapt and extend an object that we wish to pass to a foreign app domainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  Used to extend an object with an interface from a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method ToEnumerable  This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.)
Top


Show: