Table of Contents

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

length Tuple<int, byte[]>

The length data.

stream Stream

The stream.

Properties

TypeCode

Type code.

public SnmpType TypeCode { get; }

Property Value

SnmpType

Methods

AppendBytesTo(Stream)

Appends the bytes to Stream.

public void AppendBytesTo(Stream stream)

Parameters

stream Stream

The stream.

Equals(NoSuchInstance?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(NoSuchInstance? other)

Parameters

other NoSuchInstance

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current NoSuchInstance.

public override bool Equals(object? obj)

Parameters

obj object

The 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

string

Operators

operator ==(NoSuchInstance?, NoSuchInstance?)

The equality operator.

public static bool operator ==(NoSuchInstance? left, NoSuchInstance? right)

Parameters

left NoSuchInstance

Left NoSuchInstance object

right NoSuchInstance

Right 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 NoSuchInstance

Left NoSuchInstance object

right NoSuchInstance

Right NoSuchInstance object

Returns

bool

Returns true if the values of its operands are not equal, false otherwise.