DeviceAccessChangedEventArgs
DeviceAccessChangedEventArgs
DeviceAccessChangedEventArgs
DeviceAccessChangedEventArgs
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// 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)
|
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
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// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The DeviceInformation ID for the device.
Additional features and requirements
| Device family |
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v3)
|