PnpObjectUpdate.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 更新中更改的属性。

public:
 property IMapView<Platform::String ^, Platform::Object ^> ^ Properties { IMapView<Platform::String ^, Platform::Object ^> ^ get(); };
IMapView<winrt::hstring, IInspectable const&> Properties();
public IReadOnlyDictionary<string,object> Properties { get; }
var iMapView = pnpObjectUpdate.properties;
Public ReadOnly Property Properties As IReadOnlyDictionary(Of String, Object)

属性值

IMapView<String,Object>

IReadOnlyDictionary<String,Object>

IMapView<Platform::String,Platform::Object>

IMapView<winrt::hstring,IInspectable>

更改的属性。

注解

有关属性表示的内容的详细信息,请参阅 设备信息属性

适用于

另请参阅