Class NoSuchObject
- Namespace
- Lextm.SharpSnmpLib
- Assembly
- SharpSnmpLib.dll
NoSuchObject exception.
public sealed class NoSuchObject : ISnmpData, IEquatable<NoSuchObject>
- Inheritance
-
NoSuchObject
- Implements
- Inherited Members
- Extension Methods
Constructors
NoSuchObject()
Initializes a new instance of the NoSuchObject class.
public NoSuchObject()
NoSuchObject(Tuple<int, byte[]>, Stream)
Initializes a new instance of the NoSuchObject class.
public NoSuchObject(Tuple<int, byte[]> length, Stream stream)
Parameters
Properties
TypeCode
Type code.
public SnmpType TypeCode { get; }
Property Value
Methods
AppendBytesTo(Stream)
Appends the bytes to Stream.
public void AppendBytesTo(Stream stream)
Parameters
stream
StreamThe stream.
Equals(NoSuchObject?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(NoSuchObject? other)
Parameters
other
NoSuchObjectAn object to compare with this object.
Returns
- bool
true if the current object is equal to theother
parameter; otherwise,false .
Equals(object?)
Determines whether the specified object is equal to the current NoSuchObject.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current NoSuchObject.
Returns
- bool
true if the specified object is equal to the current NoSuchObject; otherwise,false .
GetHashCode()
Serves as a hash function for a particular type.
public override int GetHashCode()
Returns
- int
A hash code for the current NoSuchObject.
ToString()
Returns a string that represents this NoSuchObject.
public override string ToString()
Returns
Operators
operator ==(NoSuchObject?, NoSuchObject?)
The equality operator.
public static bool operator ==(NoSuchObject? left, NoSuchObject? right)
Parameters
left
NoSuchObjectLeft NoSuchObject object
right
NoSuchObjectRight NoSuchObject object
Returns
- bool
Returns
true
if the values of its operands are equal,false
otherwise.
operator !=(NoSuchObject?, NoSuchObject?)
The inequality operator.
public static bool operator !=(NoSuchObject? left, NoSuchObject? right)
Parameters
left
NoSuchObjectLeft NoSuchObject object
right
NoSuchObjectRight NoSuchObject object
Returns
- bool
Returns
true
if the values of its operands are not equal,false
otherwise.