SNMPObject Type
The current SNMP object.
Remarks
This type defines an SNMP object. Each object has an Oid, ObjectType, and Value. These values are populated by the component when incoming packets are received. You may use these fields to define objects to be used in outgoing packets.
Fields
ObjectType TipnSNMPObjectTypes |
The current object's type. The default type is NULL (5). The corresponding object id and value are specified by the Oid and Value properties. Possible object type values include:
The component also supports the following artificial object values used to designate error conditions:
| ||||||||||||||||||||||||||||||
Oid String |
The current object's id which is encoded as a string of numbers separated by periods. For instance: "1.3.6.1.2.1.1.1.0" (OID for "system description"). The corresponding object type and value (if any) are specified by the ObjectType and Value properties. Example
SNMPControl.ObjCount = 1 SNMPControl.ObjId(0) = "1.3.6.1.2.1.1.1.0" | ||||||||||||||||||||||||||||||
TypeString String |
A string representation of the current object's ObjectType. The corresponding object id and value are specified by the Oid and Value properties. | ||||||||||||||||||||||||||||||
Value String |
The current object's value. The corresponding object id and type are specified by the Oid and ObjectType properties. Example
SNMPControl.ObjCount = 1 SNMPControl.ObjId(0) = "1.3.6.1.2.1.1.1.0" SNMPControl.ObjValue(0) = "New Value" | ||||||||||||||||||||||||||||||
ValueB TBytes |
The current object's value. The corresponding object id and type are specified by the Oid and ObjectType properties. Example
SNMPControl.ObjCount = 1 SNMPControl.ObjId(0) = "1.3.6.1.2.1.1.1.0" SNMPControl.ObjValue(0) = "New Value" |
Constructors
constructor Create();
constructor Create(valOid: String);
constructor Create(valOid: String; valValue: TBytes);