PowerSNMP for .NET
Id Constructor




The initial value given to this object in string form.
Initializes a new instance of the Id class.
Syntax
Public Function New( _
   ByVal id As String _
)
Dim id As String
 
Dim instance As New Id(id)
public Id( 
   string id
)
public: Id( 
   string* id
)
public:
Id( 
   String^ id
)

Parameters

id
The initial value given to this object in string form.
Exceptions
ExceptionDescription
System.ArgumentExceptionid has less than 2 sub-ids or more than 128 sub-ids, or id does not encode/decode properly.
System.ArgumentNullExceptionid is a null reference.
System.FormatExceptionid contains a dotted value that is not an optional sign followed by a sequence of digits.
System.OverflowExceptionid contains a dotted value that is less than UInt32.MinValue or greater than UInt32.MaxValue
Remarks

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.

See Also

Reference

Id Class
Id Members


PowerSNMP for .NET Documentation Version 8.1
© 2026 Dart Communications. All Rights Reserved.
Send comments on this topic