共用方式為


PnpObjectUpdate.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列舉的其中一個值。

public:
 property PnpObjectType Type { PnpObjectType get(); };
PnpObjectType Type();
public PnpObjectType Type { get; }
var pnpObjectType = pnpObjectUpdate.type;
Public ReadOnly Property Type As PnpObjectType

屬性值

PnpObject的類型。

適用於

另請參閱