Table of Contents

Class Sequence

Namespace
Lextm.SharpSnmpLib
Assembly
SharpSnmpLib.dll

Array type.

public sealed class Sequence : ISnmpData
Inheritance
Sequence
Implements
Inherited Members
Extension Methods

Remarks

Represents SMIv1 SEQUENCE.

Constructors

Sequence(byte[]?, params ISnmpData?[])

Creates an Sequence instance with varied ISnmpData instances.

public Sequence(byte[]? length, params ISnmpData?[] items)

Parameters

length byte[]

The length bytes.

items ISnmpData[]

The items.

Sequence(IEnumerable<ISnmpData>)

Creates an Sequence instance with varied ISnmpData instances.

public Sequence(IEnumerable<ISnmpData> items)

Parameters

items IEnumerable<ISnmpData>

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

Initializes a new instance of the Sequence class.

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

Parameters

length Tuple<int, byte[]>

The length.

stream Stream

The stream.

Properties

this[int]

Gets the ISnmpData at the specified index.

public ISnmpData this[int index] { get; }

Parameters

index int

Property Value

ISnmpData

Length

Item count in this Sequence.

public int Length { get; }

Property Value

int

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.

GetEnumerator()

Gets the enumerator.

public IEnumerator GetEnumerator()

Returns

IEnumerator

GetLengthBytes()

Gets the length bytes.

public byte[]? GetLengthBytes()

Returns

byte[]

System.Byte[].

ToString()

Returns a string that represents this Sequence.

public override string ToString()

Returns

string