driveState (property)
The drive's storage quota state.
Syntax
- (int)driveState:(int)driveIndex;
/* Possible Values */
DS_NORMAL(0),
DS_NEARING(1),
DS_CRITICAL(2),
DS_EXCEEDED(3)
public func driveState(driveIndex: Int32) throws -> OnedriveDriveStates
public enum OnedriveDriveStates : Int32 { case dsNormal = 0 case dsNearing = 1 case dsCritical = 2 case dsExceeded = 3 }
Default Value
0
Remarks
The drive's storage quota state.
This property reflects the drive's current storage quota state. Possible values are:
0 (dsNormal) | The drive has >= 10% free space remaining. |
1 (dsNearing) | The drive has < 10% free space remaining. |
2 (dsCritical) | The drive has < 1% free space remaining. |
3 (dsExceeded) | The drive has reached or exceeded its storage quota. |
The DriveIndex parameter specifies the index of the item in the array. The size of the array is controlled by the DriveCount property.
This property is read-only.