NoSuchObject is returned by the agent in response to a SNMP version 2 request
when requested object does not exist in its MIB.
This value is returned as a with data of length 0
For example:
CopyC#
Namespace:
SnmpSharpNet[... prepare for a get operation ...] Pdu response = target.request(outpdu); foreach(Vb vb in response.VbList) { if( vb.Value is NoSuchObject ) { return "Requested MIB variable does not exist on the agent."; } }
Assembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.5.0.0 (0.5.0.0)
Syntax
Members
| All Members | Constructors | Properties | Methods |
| Member | Description | |
|---|---|---|
| NoSuchObject()()() | Constructor. | |
| NoSuchObject(NoSuchObject) |
Constructor
| |
| Clone()()() | Returns a duplicate object of self. (Overrides V2Error..::.Clone()()().) | |
| decode(array<Byte>[]()[], Int32) | Decode ASN.1 encoded no-such-object SNMP version 2 MIB value (Overrides V2Error..::.decode(array<Byte>[]()[], Int32).) | |
| encode(MutableByte) |
ASN.1 encode no-such-object SNMP version 2 MIB value
(Overrides V2Error..::.encode(MutableByte).) | |
| Equals(Object) | (Inherited from Object.) | |
| GetHashCode()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| ToString()()() | Returns the string representation of the object. (Overrides Object..::.ToString()()().) | |
| Type |
Return ASN.1 type of the object stored in this or derived class.
(Inherited from AsnType.) |