PowerSNMP for .NET CF
Id Property
See Also  Send comments on this topic.
Dart.Snmp Namespace > StandardMessage Class : Id Property




Gets or sets the request identification field in the message.

Syntax

Visual Basic (Declaration) 
Public Property Id As Integer
Visual Basic (Usage)Copy Code
Dim instance As StandardMessage
Dim value As Integer
 
instance.Id = value
 
value = instance.Id
C# 
public int Id {get; set;}
Managed Extensions for C++ 
public: __property int get_Id();
public: __property void set_Id( 
   int value
);
C++/CLI 
public:
property int Id {
   int get();
   void set (    int value);
}

Property Value

An integer that can pair a version 1 or 2 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 1 and 2 messages use this property in leau of Security.Id.

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

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 4.2
© 2010 Dart Communications. All Rights Reserved.