ErrorCode Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enumerates the valid types of errors for an error event.
public enum ErrorCode
type ErrorCode =
Public Enum ErrorCode
- Inheritance
-
ErrorCode
Fields
Name | Value | Description |
---|---|---|
Success | 0 | No error occurred. |
Closed | 101 | The device must be opened. |
Claimed | 102 | The device is opened but not claimed. Another application has the device claimed, so it cannot be claimed at this time. |
NotClaimed | 103 | The device is opened but not claimed. No other application has the device claimed, so it can and must be claimed. |
NoService | 104 | The control cannot communicate with the service object, normally because of a setup or configuration error. |
Disabled | 105 | The device is opened and claimed (if this is an exclusive use device), but not enabled. |
Illegal | 106 | An attempt was made to perform an illegal or unsupported operation with the device, or an invalid parameter value was used. |
NoHardware | 107 | The physical device is not connected to the system or is not powered on. |
Offline | 108 | The physical device is off-line. |
NoExist | 109 | The file name (or other specified value) does not exist. |
Exists | 110 | The file name (or other specified value) already exists. |
Failure | 111 | The device cannot perform the requested procedure, even though the physical device is connected to the system, powered on, and on-line. |
Timeout | 112 | The service object timed out waiting for a response from the physical device, or the control timed out waiting for a response from the service object. |
Busy | 113 | The current state does not allow this request. For example: if asynchronous output is in progress, certain methods may not be allowed. |
Extended | 114 | A device category-specific error condition occurred. The error condition code is held in the exception's ErrorCodeExtended property. |
Deprecated | 115 | The method has been deprecated and is no longer available. |