Table of Contents

Class Gauge32

Namespace
Lextm.SharpSnmpLib
Assembly
SharpSnmpLib.dll

Gauge32 type.

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

Constructors

Gauge32(long)

Initializes a new instance of the Gauge32 class.

public Gauge32(long value)

Parameters

value long

The value.

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

Initializes a new instance of the Gauge32 class.

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

Parameters

length Tuple<int, byte[]>

The length.

stream Stream

The stream.

Gauge32(uint)

Creates a Gauge32 with a specific uint.

[CLSCompliant(false)]
public Gauge32(uint value)

Parameters

value uint

Value

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

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

public bool Equals(Gauge32? other)

Parameters

other Gauge32

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

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current Gauge32.

Returns

bool

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

GetHashCode()

Serves as a hash function for a particular type.

public override int GetHashCode()

Returns

int

A hash code for the current Gauge32.

ToString()

Returns a string that represents this Gauge32.

public override string ToString()

Returns

string

ToUInt32()

Returns a uint that represents a Gauge32.

[CLSCompliant(false)]
public uint ToUInt32()

Returns

uint

Operators

operator ==(Gauge32?, Gauge32?)

The equality operator.

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

Parameters

left Gauge32

Left Gauge32 object

right Gauge32

Right Gauge32 object

Returns

bool

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

operator !=(Gauge32?, Gauge32?)

The inequality operator.

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

Parameters

left Gauge32

Left Gauge32 object

right Gauge32

Right Gauge32 object

Returns

bool

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