PowerSNMP for .NET
Id Property (StandardMessage)




Gets or sets the request identification field in the message.
Syntax
Public Property Id As Integer
Dim instance As StandardMessage
Dim value As Integer
 
instance.Id = value
 
value = instance.Id
public int Id {get; set;}
public: __property int get_Id();
public: __property void set_Id( 
   int value
);
public:
property int Id {
   int get();
   void set (    int value);
}

Property Value

An integer that can pair a ResponseMessage to a specific RequestMessage.
Remarks

The default constructor for any class derived from RequestMessage will automatically initialize this value to one higher than the previous. The first instance will have an Id of 1, the second an Id of 2, and so on.

All decoded messages return the value encoded in the message. Version 3 messages use Security.Id instead.

This property is unrelated to Variable.Id, which is either an OID or IID.

See Also

Reference

StandardMessage Class
StandardMessage Members


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