SwitchWarning Class
- Updated2026-01-20
- 1 minute(s) read
Defines properties and methods which provide warning codes for the warnings raised by the underlying driver.
Derives from
None
Syntax
Namespace: NationalInstruments.ModularInstruments.NISwitch
public class SwitchWarning
Remarks
Represents the list of warnings returned by the driver. For more information, refer to NI Switches Help.
Thread Safety
All members of this type are safe for multithreaded operations.
Properties
| Name | Description |
|---|---|
| Code | Gets the GUID code assigned to the warning. |
| ImplicitConnectionExistsWarningCode | Gets the warning code if the path between the channels is not available, the channels are not explicitly connected, but the implicit connection exists between them. |
| Message | Gets the message related to the warning. |
| PathRemainsWarningCode | Gets the warning code if the card is not capable of removing all paths and always leaves at least one connected. |
| UnexpectedDriverWarningCode | Gets the warning code for an unexpected driver warning. |
Methods
| Name | Description |
|---|---|
| Equals(SwitchWarning, bool) | Checks if the two SwitchWarning objects are equal by considering whether warning message should be compared or not. |
| Equals(SwitchWarning) | Determines whether the current instance of SwitchWarning and the SwitchWarning object that you specify are equal. |
| Equals(object) | Determines whether the current instance of SwitchWarning and the object that you specify are equal. |
| GetHashCode() | Returns the hash code for the current instance of SwitchWarning. |
| ToString() | Converts the current instance of SwitchWarning to string. |
Operators
| Name | Description |
|---|---|
| operator!=(SwitchWarning, SwitchWarning) | Checks whether the two instances of SwitchWarning are unequal. |
| operator==(SwitchWarning, SwitchWarning) | Checks whether the two instances of SwitchWarning are equal. |