DeviceAccessChangedEventArgs DeviceAccessChangedEventArgs DeviceAccessChangedEventArgs DeviceAccessChangedEventArgs DeviceAccessChangedEventArgs Class

Definition

Provides data for the AccessChanged event.

public : sealed class DeviceAccessChangedEventArgs : IDeviceAccessChangedEventArgs, IDeviceAccessChangedEventArgs2
struct winrt::Windows::Devices::Enumeration::DeviceAccessChangedEventArgs : IDeviceAccessChangedEventArgs, IDeviceAccessChangedEventArgs2
public sealed class DeviceAccessChangedEventArgs : IDeviceAccessChangedEventArgs, IDeviceAccessChangedEventArgs2
Public NotInheritable Class DeviceAccessChangedEventArgs Implements IDeviceAccessChangedEventArgs, IDeviceAccessChangedEventArgs2
// This class does not provide a public constructor.
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 Id Id

Gets the DeviceInformation ID of the device referenced by DeviceAccessChangedEventArgs.

Status Status Status Status Status

The new status of access to a device.