Class DataWriterDataSink
A IData
Inheritance
System.Object
DataWriterDataSink
Implements
Namespace: PSPDFKitFoundation.Data
Assembly: PSPDFKitFoundation.dll
Syntax
public sealed class DataWriterDataSink : IDataSink
Constructors
DataWriterDataSink(DataWriter, DataSinkOption)
Constructs a Data
Declaration
public DataWriterDataSink(DataWriter dataWriter, DataSinkOption option)
Parameters
Type | Name | Description |
---|---|---|
Windows. |
dataWriter | |
Data |
option | Whether data should be appended to or replaced. |
Properties
DataSinkOption
The Data
Declaration
public DataSinkOption DataSinkOption { get; }
Property Value
Type | Description |
---|---|
Data |
Finished
Set to true if Finish() is called.
Declaration
public bool Finished { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
Finish()
All writing operations are complete. This can be useful for situations such as encrypting the output.
Declaration
public bool Finish()
Returns
Type | Description |
---|---|
System. |
True if successful. |
WriteDataAsync(IBuffer)
Data to be written or appended to the data sink.
Declaration
public IAsyncOperation<bool> WriteDataAsync(IBuffer data)
Parameters
Type | Name | Description |
---|---|---|
Windows. |
data | The Windows. |
Returns
Type | Description |
---|---|
Windows. |
True if successful. |