Indexed access to the OctetString class data members.
CopyC#
OctetString os = new OctetString("test");
for(int i=0;i<=os.Length;i++) {
 Console.WriteLine("{0}",os[i]);
}

Namespace:  SnmpSharpNet
Assembly:  SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.5.2.0 (0.5.2.0)

Syntax

C#
public byte this[
	int index
] { get; set; }
Visual Basic (Declaration)
Public Default Property Item ( _
	index As Integer _
) As Byte
Visual C++
public:
property unsigned char default[int index] {
	unsigned char get (int index);
	void set (int index, unsigned char value);
}

Parameters

index
Type: System..::.Int32
Index position of the data value to access

Return Value

Byte value at the index position. 0 if index is out of range

See Also