Device​Access​Changed​Event​Args Device​Access​Changed​Event​Args Device​Access​Changed​Event​Args Class

Definition

Provides data for the AccessChanged event.

public sealed class DeviceAccessChangedEventArgs : IDeviceAccessChangedEventArgs, IDeviceAccessChangedEventArgs2public sealed class DeviceAccessChangedEventArgs : IDeviceAccessChangedEventArgs, IDeviceAccessChangedEventArgs2Public NotInheritable Class DeviceAccessChangedEventArgs Implements IDeviceAccessChangedEventArgs, IDeviceAccessChangedEventArgs2
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

This object is not instantiated directly, it is created by the AccessChanged event and is returned as an argument to the AccessChanged event handler.

Note

: This class is not agile, which means that you need to consider its threading model and marshaling behavior. For more info, see Threading and Marshaling (C++/CX) and Using Windows Runtime objects in a multithreaded environment (.NET).

Properties

Id Id Id

Gets the DeviceInformation ID of the device referenced by DeviceAccessChangedEventArgs.

public PlatForm::String Id { get; }public string Id { get; }Public ReadOnly Property Id As string
Value
string string string

The DeviceInformation ID for the device.

Attributes
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Status Status Status

The new status of access to a device.

public DeviceAccessStatus Status { get; }public DeviceAccessStatus Status { get; }Public ReadOnly Property Status As DeviceAccessStatus
Value
DeviceAccessStatus DeviceAccessStatus DeviceAccessStatus

The new status of access to a device.

Attributes