다음을 통해 공유


CustomDevice.FromIdAsync(String, DeviceAccessMode, DeviceSharingMode) 메서드

정의

지정된 DeviceInformation.Id 대해 CustomDevice 개체를 비동기적으로 만듭니다.

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

매개 변수

deviceId
String

Platform::String

winrt::hstring

디바이스의 DeviceInformation.Id .

desiredAccess
DeviceAccessMode

원하는 액세스입니다.

sharingMode
DeviceSharingMode

공유 모드입니다.

반환

사용자 지정 디바이스를 반환합니다.

특성

Windows 요구 사항

앱 기능
optical iot:lowLevelDevices

적용 대상