Share via


DeviceAccessInformation Klasse

Definition

Enthält die Informationen zum Zugriff auf ein Gerät.

public ref class DeviceAccessInformation sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class DeviceAccessInformation final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class DeviceAccessInformation
Public NotInheritable Class DeviceAccessInformation
Vererbung
Object Platform::Object IInspectable DeviceAccessInformation
Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v1.0)

Eigenschaften

CurrentStatus

Der aktuelle Gerätezugriff status.

UserPromptRequired

Enthält die Informationen zum Zugriff auf ein Gerät.

Methoden

CreateFromDeviceClass(DeviceClass)

Initialisiert ein DeviceAccessInformation-Objekt basierend auf einer bestimmten DeviceClass.

CreateFromDeviceClassId(Guid)

Initialisiert ein DeviceAccessInformation-Objekt basierend auf einer Geräteklassen-ID.

CreateFromId(String)

Initialisiert ein DeviceAccessInformation-Objekt basierend auf einer Geräte-ID.

Ereignisse

AccessChanged

Wird ausgelöst, wenn sich der Zugriff auf ein Gerät geändert hat.

Gilt für: