DeviceAccessInformation DeviceAccessInformation DeviceAccessInformation DeviceAccessInformation Class

Definition

Contains the information about access to a device.

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

Properties

CurrentStatus CurrentStatus CurrentStatus CurrentStatus

The current device access status.

public : DeviceAccessStatus CurrentStatus { get; }public DeviceAccessStatus CurrentStatus { get; }Public ReadOnly Property CurrentStatus As DeviceAccessStatus// You can use this property in JavaScript.

Methods

CreateFromDeviceClass(DeviceClass) 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// You can use this method in JavaScript.
Parameters
deviceClass
DeviceClass DeviceClass DeviceClass DeviceClass

Device class to get DeviceAccessInformation about.

Returns

CreateFromDeviceClassId(Guid) 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// You can use this method in JavaScript.
Parameters
deviceClassId
PlatForm::Guid Guid Guid Guid

Id of the device class to get DeviceAccessInformation about.

Returns

CreateFromId(String) 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// You can use this method in JavaScript.
Parameters
deviceId
PlatForm::String String String String

Id of the device to get DeviceAccessInformation about.

Returns

Events

AccessChanged AccessChanged AccessChanged AccessChanged

Raised when access to a device has changed.

public : event TypedEventHandler AccessChanged<DeviceAccessInformation,  DeviceAccessChangedEventArgs>public event TypedEventHandler AccessChanged<DeviceAccessInformation,  DeviceAccessChangedEventArgs>Public Event AccessChanged<DeviceAccessInformation,  DeviceAccessChangedEventArgs>// You can use this event in JavaScript.