Freigeben über


UsbDevice.FromIdAsync(String) Methode

Definition

Startet einen asynchronen Vorgang, der ein UsbDevice-Objekt erstellt.

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

Parameter

deviceId
String

Platform::String

winrt::hstring

Das Gerät instance Pfad des Geräts. Um diesen Wert zu erhalten, rufen Sie den wert der DeviceInformation.Id-Eigenschaft ab.

Gibt zurück

Gibt ein IAsyncOperation(UsbDevice)- Objekt zurück, das die Ergebnisse des Vorgangs zurückgibt.

Attribute

Gilt für: