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 的类型。

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

属性值

对象的类型。

适用于