共用方式為


PnpObjectUpdate 類別

定義

重要

我們不再建議您使用 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 ref class PnpObjectUpdate sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class PnpObjectUpdate final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class PnpObjectUpdate
Public NotInheritable Class PnpObjectUpdate
繼承
Object Platform::Object IInspectable PnpObjectUpdate
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

Updated 事件擷取這個類別的實例。

具現化這個類別的實例,以傳遞至 Update 方法。

屬性

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的識別碼。

Properties

重要

我們不再建議您使用 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更新中的已變更屬性。

Type

重要

我們不再建議您使用 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的類型。 PnpObjectType列舉的其中一個值。

適用於