IBinaryFormatProvider<T>
Contract for binary format providers that import/export documents from/to byte arrays.
Definition
Namespace:Telerik.Windows.Documents.Common.FormatProviders
Assembly:Telerik.Windows.Documents.Core.dll
Type Parameters:
T
Syntax:
public interface IBinaryFormatProvider<T>
Derived Classes:
Methods
Exports the document to a byte array with an optional timeout.
byte[] Export(T document, TimeSpan? timeout)
The document.
timeoutTimeSpan?The timeout after which the operation will be cancelled.
Returns:byte[]
The result byte array.
Exceptions:The exception that is thrown when timeout is less than -1 or greater than Int32.MaxValue. Note that this upper bound is more restrictive than TimeSpan.MaxValue.
Imports a document from a byte array with an optional timeout and returns the parsed document.
T Import(byte[] input, TimeSpan? timeout)
The input.
timeoutTimeSpan?The timeout after which the operation will be cancelled.
Returns:T
The document.
Exceptions:The exception that is thrown when timeout is less than -1 or greater than Int32.MaxValue. Note that this upper bound is more restrictive than TimeSpan.MaxValue.