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?[])
public Sequence(byte[]? length, params ISnmpData?[] items)
Parameters
Sequence(IEnumerable<ISnmpData>)
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
Properties
this[int]
Gets the ISnmpData at the specified index.
public ISnmpData this[int index] { get; }
Parameters
index
int
Property Value
Length
Item count in this Sequence.
public int Length { get; }
Property Value
TypeCode
Type code.
public SnmpType TypeCode { get; }
Property Value
Methods
AppendBytesTo(Stream)
Appends the bytes to Stream.
public void AppendBytesTo(Stream stream)
Parameters
stream
StreamThe stream.
GetEnumerator()
Gets the enumerator.
public IEnumerator GetEnumerator()
Returns
GetLengthBytes()
Gets the length bytes.
public byte[]? GetLengthBytes()
Returns
- byte[]
System.Byte[].
ToString()
public override string ToString()