次の方法で共有


PhoneLine.TransportDeviceId プロパティ

定義

この PhoneLine に関連付けられている PhoneLineTransportDevice のデバイス ID。 トランスポート デバイスがない場合は Null。

public:
 property Platform::String ^ TransportDeviceId { Platform::String ^ get(); };
winrt::hstring TransportDeviceId();
public string TransportDeviceId { get; }
var string = phoneLine.transportDeviceId;
Public ReadOnly Property TransportDeviceId As String

プロパティ値

String

Platform::String

winrt::hstring

デバイス ID を表す文字列。

Windows の要件

デバイス ファミリ
Windows 10, version 1903 (10.0.18362.0 で導入)
API contract
Windows.ApplicationModel.Calls.CallsPhoneContract (v5.0 で導入)

注釈

DeviceId は 、Windows.Devices.Enumerations.DeviceInformation.ID から取得されます。

PhoneLineTransportDevice は、PhoneLineTransport の種類が Bluetooth の PhoneLine オブジェクトでのみ使用できます。

適用対象