Condividi tramite


PnpObject.Properties Proprietà

Definizione

Importante

Non è più consigliabile usare i tipi nello spazio dei nomi Windows.Devices.Enumeration.Pnp . I tipi nello spazio dei nomi Windows.Devices.Enumeration implementano invece un superset moderno e gestito meglio delle funzionalità di Windows.Devices.Enumeration.Pnp.

L'alternativa a PnpObjectType è l'enumerazione Windows.Devices.Enumeration.DeviceInformationKind , che è possibile passare come parametro alle API Windows.Devices.Enumeration . Ad esempio, anziché usare PnpObjectType quando crei un PnpObjectWatcher, usa DeviceInformationKind quando crei un DeviceWatcher.

Archivio delle proprietà contenente valori noti e proprietà specificate aggiuntive.

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 = pnpObject.properties;
Public ReadOnly Property Properties As IReadOnlyDictionary(Of String, Object)

Valore della proprietà

IMapView<String,Object>

IReadOnlyDictionary<String,Object>

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

IMapView<winrt::hstring,IInspectable>

Puntatore all'archivio delle proprietà.

Commenti

Per altre info sulla rappresentazione delle proprietà, vedi Proprietà delle informazioni sul dispositivo.

Si applica a