ISupportBinaryImageExtensionsBinaryImage Method

Returns a binary image of an object that implements ISupportBinaryImage.

Definition

Namespace: Gemstone.IO.Parsing
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.177 -- Release Build+17e3a8c30c12a6a5a57ad4af156d7b83be281c33
public static byte[] BinaryImage(
	this ISupportBinaryImage imageSource,
	bool clearArray = false
)

Parameters

imageSource  ISupportBinaryImage
ISupportBinaryImage source.
clearArray  Boolean  (Optional)
Clears any rented buffers of their contents so that a subsequent consumer will not see the previous consumer's content. If false, default, the array's contents are left unchanged.

Return Value

Byte
A binary image of an object that implements ISupportBinaryImage.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ISupportBinaryImage. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Remarks

This is a convenience method. It is often optimal to use GenerateBinaryImage(Byte, Int32) directly using a common buffer instead of always allocating new buffers.

Exceptions

ArgumentNullExceptionimageSource cannot be null.

See Also