共用方式為


VibrationDevice.FromIdAsync(String) 方法

定義

以非同步方式擷取指定的震動裝置。

public:
 static IAsyncOperation<VibrationDevice ^> ^ FromIdAsync(Platform::String ^ deviceId);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<VibrationDevice> FromIdAsync(winrt::hstring const& deviceId);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<VibrationDevice> FromIdAsync(string deviceId);
function fromIdAsync(deviceId)
Public Shared Function FromIdAsync (deviceId As String) As IAsyncOperation(Of VibrationDevice)

參數

deviceId
String

Platform::String

winrt::hstring

用來識別單一輸入裝置的全域唯一識別碼 (GUID) 。

傳回

來自指定識別碼的 VibrationDevice

屬性

適用於