DeviceConnectionEventArgs Class
Package: GHIElectronics.Endpoint.Devices.Storage
Namespace: GHIElectronics.Endpoint.Devices.Storage
Event data for StorageController.ConnectionChanged: one drive attached or detached.
public sealed class DeviceConnectionEventArgs : EventArgs
Properties
DeviceStatus
public DeviceConnectionStatus DeviceStatus { get; }
Whether the drive was just connected or just disconnected.
Returns DeviceConnectionStatus
Hdc
public nint Hdc { get; }
The drive, for FileSystem.Mount, Flush and Unmount, until it is pulled out
Returns nint
VolumeLabel
public string VolumeLabel { get; }
The drive's name ("LOGGER"), empty if it has none. (On Endpoint, DriveInfo.VolumeLabel returns the drive's mount folder, not its label: read this property instead.)
Returns string