Copy source buffer array up to length into the class.

Namespace: SnmpSharpNet
Assembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.9.1.0 (0.9.1)

Syntax

C#
public void Set(
	byte[] buf,
	int length
)
Visual Basic
Public Sub Set ( _
	buf As Byte(), _
	length As Integer _
)
Visual C++
public:
void Set(
	array<unsigned char>^ buf, 
	int length
)

Parameters

buf
Type: array<System..::..Byte>[]()[][]
Source byte array
length
Type: System..::..Int32
Number of items to copy

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionThrown if buf argument is null or length of zero

See Also