Class NoSuchInstance
- Namespace
- Lextm.SharpSnmpLib
- Assembly
- SharpSnmpLib.dll
NoSuchInstance exception.
public sealed class NoSuchInstance : ISnmpData, IEquatable<NoSuchInstance>
- Inheritance
-
NoSuchInstance
- Implements
- Inherited Members
- Extension Methods
Constructors
NoSuchInstance()
Initializes a new instance of the NoSuchInstance class.
public NoSuchInstance()
NoSuchInstance(Tuple<int, byte[]>, Stream)
Initializes a new instance of the NoSuchInstance class.
public NoSuchInstance(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(NoSuchInstance?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(NoSuchInstance? other)
Parameters
other
NoSuchInstanceAn 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 NoSuchInstance.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current NoSuchInstance.
Returns
- bool
true if the specified object is equal to the current NoSuchInstance; otherwise,false .
GetHashCode()
Serves as a hash function for a particular type.
public override int GetHashCode()
Returns
- int
A hash code for the current NoSuchInstance.
ToString()
Returns a string that represents this NoSuchInstance.
public override string ToString()
Returns
Operators
operator ==(NoSuchInstance?, NoSuchInstance?)
The equality operator.
public static bool operator ==(NoSuchInstance? left, NoSuchInstance? right)
Parameters
left
NoSuchInstanceLeft NoSuchInstance object
right
NoSuchInstanceRight NoSuchInstance object
Returns
- bool
Returns
true
if the values of its operands are equal,false
otherwise.
operator !=(NoSuchInstance?, NoSuchInstance?)
The inequality operator.
public static bool operator !=(NoSuchInstance? left, NoSuchInstance? right)
Parameters
left
NoSuchInstanceLeft NoSuchInstance object
right
NoSuchInstanceRight NoSuchInstance object
Returns
- bool
Returns
true
if the values of its operands are not equal,false
otherwise.