Table of Contents

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

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(NoSuchObject?)

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

public bool Equals(NoSuchObject? other)

Parameters

other NoSuchObject

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 NoSuchObject.

public override bool Equals(object? obj)

Parameters

obj object

The 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

string

Operators

operator ==(NoSuchObject?, NoSuchObject?)

The equality operator.

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

Parameters

left NoSuchObject

Left NoSuchObject object

right NoSuchObject

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

Left NoSuchObject object

right NoSuchObject

Right NoSuchObject object

Returns

bool

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