The Pdu type exposes the following members.

Constructors

  NameDescription
Public methodPdu()()()()
Constructor.
Public methodPdu(Pdu)
Constructor
Public methodPdu(PduType)
Constructor.
Public methodPdu(VbCollection)
Constructor.
Public methodPdu(VbCollection, PduType, Int32)
Constructor.

Methods

  NameDescription
Public methodClone
Clone this object
(Overrides AsnType..::..Clone()()()().)
Public methoddecode
Decode BER encoded Pdu
(Overrides AsnType..::..decode(array<Byte>[]()[][], Int32).)
Public methodDeleteVb
Delete VB from the specified location in the VarBind list
Public methodencode
Encode Pdu class to BER byte buffer
(Overrides AsnType..::..encode(MutableByte).)
Public methodEquals
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).)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberGetBulkPdu()()()()
Create GetBulk Pdu with empty VarBind array. By default initializes NonRepeaters to 0 and MaxRepetitions to 100
Public methodStatic memberGetBulkPdu(VbCollection)
Create SNMP-GetBulk Pdu
Public methodGetEnumerator
Get VarBind collection enumerator.
Public methodGetHashCode
Returns hash code representing class value.
(Overrides Object..::..GetHashCode()()()().)
Public methodStatic memberGetNextPdu()()()()
Create GetNext Pdu with empty VarBind array
Public methodStatic memberGetNextPdu(VbCollection)
Create SNMP-GetNext Pdu
Public methodStatic memberGetPdu()()()()
Create Get Pdu with empty VarBind array
Public methodStatic memberGetPdu(VbCollection)
Create SNMP-GET Pdu from VbList
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetVb
Get VB from VarBind list at the specified index
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReset
Reset VbList.
Public methodSet
Copy values from another Pdu class.
Public methodStatic memberSetPdu()()()()
Create Set Pdu with empty VarBind array
Public methodStatic memberSetPdu(VbCollection)
Create SNMP-SET Pdu
Public methodSetVbList
Set VbList
Public methodToString
Return string dump of the Pdu class.
(Overrides Object..::..ToString()()()().)

Fields

  NameDescription
Protected field_asnType
ASN.1 type byte.
(Inherited from AsnType.)
Protected field_errorIndex
Error index value.
Protected field_errorStatus
Error status value.
Protected field_requestId
Request id value.
Protected field_trapObjectID
SNMPv2 trap second Vb is the trap object ID.
Protected field_trapTimeStamp
SNMPv2 trap first Vb is the trap time stamp. To create an SNMPv2 TRAP packet, set the timestamp value in this variable
Protected field_vbs
Variable binding collection

Properties

  NameDescription
Public propertyErrorIndex
ErrorIndex Pdu value
Public propertyErrorStatus
ErrorStatus Pdu value
Public propertyItem[([( Int32])])
Indexed access to VarBind collection of the Pdu.
Public propertyItem[([( String])])
Access variable bindings using Vb Oid value in the string format
Public propertyItem[([( Oid])])
Access variable bindings using Vb Oid value
Public propertyMaxRepetitions
Tells SNMP Agent how many VBs to include in a single request. Only valid on GETBULK requests.
Public propertyNonRepeaters
Get/Set GET-BULK NonRepeaters value
Public propertyRequestId
SNMP packet request id that is sent to the SNMP agent. SET this value before making SNMP requests.
Public propertyTrapObjectID
Get TRAP ObjectID class from SNMPv2 TRAP and INFORM PDUs
Public propertyTrapSysUpTime
Get TRAP TimeStamp class from SNMPv2 TRAP and INFORM PDUs
Public propertyType
Get or SET the PDU type. Available types are GET, GETNEXT, SET, GETBULK. PDU types are defined in Pdu class.
Public propertyVbCount
Return the number of VB entries in the VarBind list
Public propertyVbList
VarBind list

Explicit Interface Implementations

  NameDescription
Explicit interface implemetationPrivate methodIEnumerable..::..GetEnumerator
Get VarBind collection enumerator.

See Also