Device​Access​Information Device​Access​Information Device​Access​Information Class

Definition

Contains the information about access to a device.

public : sealed class DeviceAccessInformation : IDeviceAccessInformationpublic sealed class DeviceAccessInformation : IDeviceAccessInformationPublic NotInheritable Class DeviceAccessInformation Implements IDeviceAccessInformation
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Properties

CurrentStatus CurrentStatus CurrentStatus

The current device access status.

public : DeviceAccessStatus CurrentStatus { get; }public DeviceAccessStatus CurrentStatus { get; }Public ReadOnly Property CurrentStatus As DeviceAccessStatus
Value
DeviceAccessStatus DeviceAccessStatus DeviceAccessStatus

The current device access status.

Attributes

Methods

CreateFromDeviceClass(DeviceClass) CreateFromDeviceClass(DeviceClass) CreateFromDeviceClass(DeviceClass)

Initializes a DeviceAccessInformation object based on a given DeviceClass.

public : static DeviceAccessInformation CreateFromDeviceClass(DeviceClass deviceClass)public static DeviceAccessInformation CreateFromDeviceClass(DeviceClass deviceClass)Public Static Function CreateFromDeviceClass(deviceClass As DeviceClass) As DeviceAccessInformation
Parameters
deviceClass
DeviceClass DeviceClass DeviceClass

Device class to get DeviceAccessInformation about.

Returns
Attributes

CreateFromDeviceClassId(Guid) CreateFromDeviceClassId(Guid) CreateFromDeviceClassId(Guid)

Initializes a DeviceAccessInformation object based on a device class id.

public : static DeviceAccessInformation CreateFromDeviceClassId(PlatForm::Guid deviceClassId)public static DeviceAccessInformation CreateFromDeviceClassId(Guid deviceClassId)Public Static Function CreateFromDeviceClassId(deviceClassId As Guid) As DeviceAccessInformation
Parameters
deviceClassId
PlatForm::Guid Guid Guid

Id of the device class to get DeviceAccessInformation about.

Returns
Attributes

CreateFromId(String) CreateFromId(String) CreateFromId(String)

Initializes a DeviceAccessInformation object based on a device id.

public : static DeviceAccessInformation CreateFromId(PlatForm::String deviceId)public static DeviceAccessInformation CreateFromId(String deviceId)Public Static Function CreateFromId(deviceId As String) As DeviceAccessInformation
Parameters
deviceId
PlatForm::String String String

Id of the device to get DeviceAccessInformation about.

Returns
Attributes

Events

AccessChanged AccessChanged AccessChanged

Raised when access to a device has changed.

public : event TypedEventHandler AccessChangedpublic event TypedEventHandler AccessChangedPublic Event AccessChanged
Attributes