次の方法で共有


PnpObjectUpdate.Id プロパティ

定義

重要

Windows.Devices.Enumeration.Pnp 名前空間の型を使用することはお勧めしません。 代わりに、Windows.Devices.Enumeration 名前空間の型は、Windows.Devices.Enumeration.Pnp の機能の最新の、より適切に管理されたスーパーセットを実装します。

PnpObjectType の代わりに、Windows.Devices.Enumeration.DeviceInformationKind 列挙型があり、パラメーターとして Windows.Devices.Enumeration API に渡すことができます。 たとえば、PnpObjectWatcher を作成するときに PnpObjectType を使用する代わりに、DeviceWatcher を作成するときに DeviceInformationKind を使用します。

PnpObject の識別子。

public:
 property Platform::String ^ Id { Platform::String ^ get(); };
winrt::hstring Id();
public string Id { get; }
var string = pnpObjectUpdate.id;
Public ReadOnly Property Id As String

プロパティ値

String

Platform::String

winrt::hstring

PnpObject の識別子。

適用対象

こちらもご覧ください