DataBytesSetData Method

Replaces the content of the managed data bytes.

Definition

Namespace: Peak.Can.Basic
Assembly: PCANBasic.NET (in PCANBasic.NET.dll) Version: 4.9.0
C#
public void SetData(
	byte[] data,
	bool ignoreOverflow = false
)

Parameters

data  Byte
The new data bytes.
ignoreOverflow  Boolean  (Optional)
When true, data is truncated, if its length is greater than MaxLength. Otherwise, an exception is thrown.

Exceptions

OverflowExceptionThe length of the data passed to the method is greater than the maximum allowed (MaxLength).

See Also