Table of Contents

Class Opaque

Namespace
Lextm.SharpSnmpLib
Assembly
SharpSnmpLib.dll

Opaque type.

public sealed class Opaque : ISnmpData, IEquatable<Opaque>
Inheritance
Opaque
Implements
Inherited Members
Extension Methods

Remarks

This type is obsolete. Use OctetString type instead.

Constructors

Opaque(Tuple<int, byte[]>, Stream)

Creates a Opaque instance from stream.

public Opaque(Tuple<int, byte[]> length, Stream stream)

Parameters

length Tuple<int, byte[]>

The length.

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

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

public bool Equals(Opaque? other)

Parameters

other Opaque

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

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current Opaque.

Returns

bool

true if the specified object is equal to the current Opaque; otherwise, false.

GetHashCode()

Serves as a hash function for a particular type.

public override int GetHashCode()

Returns

int

A hash code for the current Opaque.

GetRaw()

Gets the raw bytes.

public byte[] GetRaw()

Returns

byte[]

ToString()

Returns a string that represents this Opaque.

public override string ToString()

Returns

string

Operators

operator ==(Opaque?, Opaque?)

The equality operator.

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

Parameters

left Opaque

Left Opaque object

right Opaque

Right Opaque object

Returns

bool

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

operator !=(Opaque?, Opaque?)

The inequality operator.

public static bool operator !=(Opaque? left, Opaque? right)

Parameters

left Opaque

Left Opaque object

right Opaque

Right Opaque object

Returns

bool

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