Get sub-array

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

Syntax

C#
public MutableByte Get(
	int position,
	int length
)
Visual Basic (Declaration)
Public Function Get ( _
	position As Integer, _
	length As Integer _
) As MutableByte
Visual C++
public:
MutableByte^ Get(
	int position, 
	int length
)

Parameters

position
Type: System..::.Int32
Start of the sub-array. Zero based.
length
Type: System..::.Int32
Count of bytes to copy

Return Value

MutableByte array containing the sub-array.

Exceptions

ExceptionCondition
System..::.OverflowExceptionThrown when position starts before the beginning of the array (position is less then 0) or position + length is greater then the length of the byte array contained in the object.

See Also