| Dart.Snmp.SimpleType Namespace > Id Class : Id Constructor |
| Exception | Description |
|---|---|
| System.ArgumentException | id has less than 2 sub-ids or more than 128 sub-ids, or id does not encode/decode properly. |
| System.ArgumentNullException | id is a null reference. |
| System.FormatException | id contains a dotted value that is not an optional sign followed by a sequence of digits. |
| System.OverflowException | id contains a dotted value that is less than UInt32.MinValue or greater than UInt32.MaxValue |
The string value assigned to an Id object must be in the form n.n.n….n where each n is an unsigned 32-bit integer. The string is limited to 128 n values. The encoding requires that the max value of the first sub-id is 107374182, and the max value of the second sub-id is 39. Most Id's start with "1.3".
Typically "0.0" is th minimum ID number that can be used for most purposes. However some out of spec SNMP devices require an ID of just zero to initialize. As such, zero, can be passed intop the constructo to produce that ID.