SNMPv2 NoSuchObject error
Namespace: SnmpSharpNetAssembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.9.1.0 (0.9.1)
Syntax
| C# |
|---|
[SerializableAttribute] public class NoSuchObject : V2Error, ICloneable |
| Visual Basic |
|---|
<SerializableAttribute> _ Public Class NoSuchObject _ Inherits V2Error _ Implements ICloneable |
| Visual C++ |
|---|
[SerializableAttribute] public ref class NoSuchObject : public V2Error, ICloneable |
Remarks
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#
// [... prepare for a get operation ...] Pdu response = target.Request(outpdu, params); foreach(Vb vb in response.VbList) { if( vb.Value is NoSuchObject ) { return "Requested MIB variable does not exist on the agent."; } }
Inheritance Hierarchy
System..::..Object
SnmpSharpNet..::..AsnType
SnmpSharpNet..::..V2Error
SnmpSharpNet..::..NoSuchObject
SnmpSharpNet..::..AsnType
SnmpSharpNet..::..V2Error
SnmpSharpNet..::..NoSuchObject