這個 API 支援 .NET Framework 基礎結構,但您不可以直接在程式碼中使用它。
取得或設定鍵盤快速鍵。
命名空間: Microsoft.VisualStudio.TestTools.UITest.Common
組件: Microsoft.VisualStudio.TestTools.UITest.Common (在 Microsoft.VisualStudio.TestTools.UITest.Common.dll 中)
語法
'宣告
Public Property AcceleratorKey As Key
Get
Private Set
public Key AcceleratorKey { get; private set; }
public:
property Key AcceleratorKey {
Key get ();
private: void set (Key value);
}
member AcceleratorKey : Key with get, private set
function get AcceleratorKey () : Key
private function set AcceleratorKey (value : Key)
屬性值
型別:System.Windows.Input.Key
鍵盤快速鍵。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。