Show / Hide Table of Contents

DeviceEventArgs<TDevice> Class

Namespace: Yubico.Core.Devices Assembly: Yubico.Core.dll

Event arguments given whenever a device is added or removed from the system, providing strongly-typed access to the device that triggered the event.

C#
public abstract class DeviceEventArgs<TDevice> : EventArgs, IDeviceEventArgs<TDevice> where TDevice : IDevice
Inheritance object EventArgs DeviceEventArgs<TDevice>
HidDeviceEventArgs
SmartCardDeviceEventArgs
Implements
IDeviceEventArgs<TDevice>
Type Parameters
Class.Header.Syntax.TypeParameters:Name Description
TDevice

The type of device associated with this event, which must implement IDevice.

Constructors

Name Description
DeviceEventArgs(TDevice)

Constructs a new instance of the DeviceEventArgs<TDevice> class.

Properties

Name Description
Device

Gets the specific type of IDevice that originated the event. This property will always be populated, regardless of whether this is an arrival event or a removal event. If the device was removed, not all members will be available on the object. An exception will be thrown if you try to use the device in a way that requires it to be present.

In this article
Back to top Generated by DocFX