Construct the class and set value. Value can be set by reference (assigned passed array parameter to the interal class variable) or by value (copy data in the array into a new buffer).

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

Syntax

C#
public OctetString(
	byte[] data,
	bool useReference
)
Visual Basic
Public Sub New ( _
	data As Byte(), _
	useReference As Boolean _
)
Visual C++
public:
OctetString(
	array<unsigned char>^ data, 
	bool useReference
)

Parameters

data
Type: array<System..::..Byte>[]()[][]
Byte array to set class value to
useReference
Type: System..::..Boolean
If true, set class value to reference byte array parameter, otherwise copy data into new internal byte array

See Also