Dela via


DeviceAccessInformation Class

Definition

Contains the information about access to a device.

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
Inheritance
Object Platform::Object IInspectable DeviceAccessInformation
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Properties

CurrentStatus

The current device access status.

UserPromptRequired

Methods

CreateFromDeviceClass(DeviceClass)

Initializes a DeviceAccessInformation object based on a given DeviceClass.

CreateFromDeviceClassId(Guid)

Initializes a DeviceAccessInformation object based on a device class id.

CreateFromId(String)

Initializes a DeviceAccessInformation object based on a device id.

Events

AccessChanged

Raised when access to a device has changed.

Applies to