Share via


KeyboardAction.Key Property

Gets or sets the key that was pressed.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Common
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Common (in Microsoft.VisualStudio.TestTools.UITest.Common.dll)

Syntax

'Declaration
Public Property Key As Keys
public Keys Key { get; set; }
public:
property Keys Key {
    Keys get ();
    void set (Keys value);
}
member Key : Keys with get, set
function get Key () : Keys 
function set Key (value : Keys)

Property Value

Type: Keys
The key that was pressed.

Remarks

Setting this property raises the PropertyChanged event.

.NET Framework Security

See Also

Reference

KeyboardAction Class

Microsoft.VisualStudio.TestTools.UITest.Common Namespace

Keys

PropertyChanged