Skip to main content

DeviceConnectionEventArgs Class

Package: GHIElectronics.Endpoint.Devices.Storage
Namespace: GHIElectronics.Endpoint.Devices.Storage

Event data for StorageController.ConnectionChanged: one drive attached or detached.

class DeviceConnectionEventArgs : public EventArgs {};

Properties​

DeviceStatus​

DeviceConnectionStatus DeviceStatus() const;

Whether the drive was just connected or just disconnected.

Returns DeviceConnectionStatus

Hdc​

intptr_t Hdc() const;

The drive, for FileSystem.Mount, Flush and Unmount, until it is pulled out

Returns nint

VolumeLabel​

std::string VolumeLabel() const;

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