The Pdu type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| Pdu()()()() |
Constructor.
| |
| Pdu(Pdu) |
Constructor
| |
| Pdu(PduType) |
Constructor.
| |
| Pdu(VbCollection) |
Constructor.
| |
| Pdu(VbCollection, PduType, Int32) |
Constructor.
|
Methods
| Name | Description | |
|---|---|---|
| Clone |
Clone this object
(Overrides AsnType..::..Clone()()()().) | |
| decode |
Decode BER encoded Pdu
(Overrides AsnType..::..decode(array<Byte>[]()[][], Int32).) | |
| DeleteVb |
Delete VB from the specified location in the VarBind list
| |
| encode |
Encode Pdu class to BER byte buffer
(Overrides AsnType..::..encode(MutableByte).) | |
| Equals |
Check class equality with argument.
Accepted argument types are:
* Integer32 - compared against the request id
* Pdu - compared against PduType, request id and contents of VarBind list
(Overrides Object..::..Equals(Object).) | |
| Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetBulkPdu()()()() |
Create GetBulk Pdu with empty VarBind array. By default initializes NonRepeaters to 0 and MaxRepetitions to 100
| |
| GetBulkPdu(VbCollection) |
Create SNMP-GetBulk Pdu
| |
| GetEnumerator |
Get VarBind collection enumerator.
| |
| GetHashCode |
Returns hash code representing class value.
(Overrides Object..::..GetHashCode()()()().) | |
| GetNextPdu()()()() |
Create GetNext Pdu with empty VarBind array
| |
| GetNextPdu(VbCollection) |
Create SNMP-GetNext Pdu
| |
| GetPdu()()()() |
Create Get Pdu with empty VarBind array
| |
| GetPdu(VbCollection) |
Create SNMP-GET Pdu from VbList
| |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| GetVb |
Get VB from VarBind list at the specified index
| |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| Reset |
Reset VbList.
| |
| Set |
Copy values from another Pdu class.
| |
| SetPdu()()()() |
Create Set Pdu with empty VarBind array
| |
| SetPdu(VbCollection) |
Create SNMP-SET Pdu
| |
| SetVbList |
Set VbList
| |
| ToString |
Return string dump of the Pdu class.
(Overrides Object..::..ToString()()()().) |
Fields
| Name | Description | |
|---|---|---|
| _asnType |
ASN.1 type byte.
(Inherited from AsnType.) | |
| _errorIndex |
Error index value.
| |
| _errorStatus |
Error status value.
| |
| _requestId |
Request id value.
| |
| _trapObjectID |
SNMPv2 trap second Vb is the trap object ID.
| |
| _trapTimeStamp |
SNMPv2 trap first Vb is the trap time stamp. To create an SNMPv2 TRAP packet, set the timestamp value
in this variable
| |
| _vbs |
Variable binding collection
|
Properties
| Name | Description | |
|---|---|---|
| ErrorIndex |
ErrorIndex Pdu value
| |
| ErrorStatus |
ErrorStatus Pdu value
| |
| Item[([( Int32])]) |
Indexed access to VarBind collection of the Pdu.
| |
| Item[([( String])]) |
Access variable bindings using Vb Oid value in the string format
| |
| Item[([( Oid])]) |
Access variable bindings using Vb Oid value
| |
| MaxRepetitions |
Tells SNMP Agent how many VBs to include in a single request. Only valid on GETBULK requests.
| |
| NonRepeaters |
Get/Set GET-BULK NonRepeaters value
| |
| RequestId |
SNMP packet request id that is sent to the SNMP agent. SET this value before making SNMP requests.
| |
| TrapObjectID |
Get TRAP ObjectID class from SNMPv2 TRAP and INFORM PDUs
| |
| TrapSysUpTime |
Get TRAP TimeStamp class from SNMPv2 TRAP and INFORM PDUs
| |
| Type |
Get or SET the PDU type. Available types are GET, GETNEXT, SET, GETBULK. PDU types are defined in Pdu class.
| |
| VbCount |
Return the number of VB entries in the VarBind list
| |
| VbList |
VarBind list
|
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
| IEnumerable..::..GetEnumerator |
Get VarBind collection enumerator.
|