The ScopedPdu type exposes the following members.

Constructors

  NameDescription
Public methodScopedPdu()()()()
Standard constructor.
Public methodScopedPdu(Pdu)
Constructor.
Public methodScopedPdu(PduType)
Constructor.
Public methodScopedPdu(PduType, Int32)
Constructor.

Methods

  NameDescription
Public methodClone
Clone this object
(Inherited from Pdu.)
Public methoddecode
Decode BER encoded ScopedPdu values. This method does not perform SNMP v3 privacy operations and is not aware of privacy requirements. To decode a privacy protected SNMP v3 packet, you will need to a) extract OctetString value holding encrypted ScopedPdu data, b) decrypt the encrypted ScopedPdu data into an unecrypted byte array, c) pass unencrypted ScopedPdu and BER encoded byte array to this method for final data conversion from BER into individual sequences and variables.
(Overrides Pdu..::..decode(array<Byte>[]()[][], Int32).)
Public methodDeleteVb
Delete VB from the specified location in the VarBind list
(Inherited from Pdu.)
Public methodencode
Convert ScopedPdu into a BER encoded byte array. Resulting byte array is appended to the argument specified MutableByte class. Privacy operations are not performed by this method. Value encoded and returned by this method is suitable for sending in NoAuthNoPriv or AuthNoPriv security configurations. If privacy is required, caller will have to perform encryption and decryption operations after BER encoding is performed. In privacy protected SNMP version 3 packets, ScopedPdu is 1) encrypted using configured encryption method, 2) added to a OctetString field, and 3) appended to the data buffer. Because privacy operation is intrusive, it is recommended that BER encoding of the ScopedPdu packet is stored in a temporary MutableByte class, where it can be privacy protected and added to the OctetString class for final encoding into the target SNMP v3 packet.
(Overrides Pdu..::..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
(Inherited from Pdu.)
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 methodGetEnumerator
Get VarBind collection enumerator.
(Inherited from Pdu.)
Public methodGetHashCode
Returns hash code representing class value.
(Inherited from Pdu.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetVb
Get VB from VarBind list at the specified index
(Inherited from Pdu.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReset
Reset VbList.
(Inherited from Pdu.)
Public methodSet
Copy values from another Pdu class.
(Inherited from Pdu.)
Public methodSetVbList
Set VbList
(Inherited from Pdu.)
Public methodToString
Return string dump of the Pdu class.
(Inherited from Pdu.)

Fields

  NameDescription
Protected field_asnType
ASN.1 type byte.
(Inherited from AsnType.)
Protected field_contextEngineId
Context Engine Id variable.
Protected field_contextName
Context name variable
Protected field_errorIndex
Error index value.
(Inherited from Pdu.)
Protected field_errorStatus
Error status value.
(Inherited from Pdu.)
Protected field_requestId
Request id value.
(Inherited from Pdu.)
Protected field_trapObjectID
SNMPv2 trap second Vb is the trap object ID.
(Inherited from Pdu.)
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
(Inherited from Pdu.)
Protected field_vbs
Variable binding collection
(Inherited from Pdu.)

Properties

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

Explicit Interface Implementations

  NameDescription
Explicit interface implemetationPrivate methodIEnumerable..::..GetEnumerator
Get VarBind collection enumerator.
(Inherited from Pdu.)

See Also