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);
foreach(Vb vb in response.VbList) {
    if( vb.Value is NoSuchObject ) {
        return "Requested MIB variable does not exist on the agent.";
    }
}

Namespace:  SnmpSharpNet
Assembly:  SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.5.0.0 (0.5.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public class NoSuchObject : V2Error
Public Class NoSuchObject _
	Inherits V2Error
public ref class NoSuchObject : public V2Error

Members

            
 All Members  Constructors   Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
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)
Determines whether the specified Object is equal to the current 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.)

Inheritance Hierarchy

System..::.Object
  SnmpSharpNet..::.AsnType
    SnmpSharpNet..::.V2Error
      SnmpSharpNet..::.NoSuchObject

See Also