ISupportBinaryImageExtensionsBinaryImageAsync Method
Namespace: Gemstone.IO.ParsingAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.164 -- Release Build+6bbd7ea5ff4ad8917f12d693358b77d083ee278e
public static Task<byte[]> BinaryImageAsync(
this ISupportBinaryImage imageSource,
bool clearArray = false,
CancellationToken cancellationToken = default
)
<ExtensionAttribute>
Public Shared Function BinaryImageAsync (
imageSource As ISupportBinaryImage,
Optional clearArray As Boolean = false,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of Byte())
public:
[ExtensionAttribute]
static Task<array<unsigned char>^>^ BinaryImageAsync(
ISupportBinaryImage^ imageSource,
bool clearArray = false,
CancellationToken cancellationToken = CancellationToken()
)
Gemstone.IO.Parsing.ISupportBinaryImageExtensions.BinaryImageAsync = function(imageSource, clearArray, cancellationToken);
- imageSource ISupportBinaryImage
- The ISupportBinaryImage source from which the binary image is generated.
- 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.
- cancellationToken CancellationToken (Optional)
- A token to monitor for cancellation requests.
TaskByteA task that represents the asynchronous operation. The task result contains the binary image of the object.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).
| ArgumentNullException | Thrown when imageSource is null. |