共用方式為


ICoreWindow.GetAsyncKeyState(VirtualKey) 方法

定義

指定非同步傳回虛擬金鑰狀態的方法。

public:
 CoreVirtualKeyStates GetAsyncKeyState(VirtualKey virtualKey);
CoreVirtualKeyStates GetAsyncKeyState(VirtualKey const& virtualKey);
public CoreVirtualKeyStates GetAsyncKeyState(VirtualKey virtualKey);
function getAsyncKeyState(virtualKey)
Public Function GetAsyncKeyState (virtualKey As VirtualKey) As CoreVirtualKeyStates

參數

virtualKey
VirtualKey

將傳回狀態的虛擬金鑰。

傳回

引發輸入事件時,提供之虛擬金鑰的狀態。

適用於