Class ExampleDataSink

Implements a IDataSink for a Windows.Storage.Streams.IRandomAccessStream

Inheritance
System.Object
ExampleDataSink
Implements
Namespace: Catalog.Helpers
Assembly: Catalog.dll
Syntax
public sealed class ExampleDataSink : IDataSink

Constructors

ExampleDataSink(DataSinkOption)

Constructs a ExampleDataSink with a DataSinkOption.

Declaration
public ExampleDataSink(DataSinkOption option)
Parameters
Type Name Description
DataSinkOption option

Whether data should be appended to or replaced.

Properties

DataSinkOption

The DataSinkOption the data sink was constructed with.

Declaration
public DataSinkOption DataSinkOption { get; }
Property Value
Type Description
DataSinkOption

Finished

Set to true if Finish() is called.

Declaration
public bool Finished { get; }
Property Value
Type Description
System.Boolean

Stream

The Windows.Storage.Streams.IRandomAccessStream to be written to.

Declaration
public IRandomAccessStream Stream { get; set; }
Property Value
Type Description
Windows.Storage.Streams.IRandomAccessStream

Methods

Finish()

Declaration
public bool Finish()
Returns
Type Description
System.Boolean

WriteDataAsync(IBuffer)

Declaration
public IAsyncOperation<bool> WriteDataAsync(IBuffer data)
Parameters
Type Name Description
Windows.Storage.Streams.IBuffer data
Returns
Type Description
Windows.Foundation.IAsyncOperation<System.Boolean>

Implements

IDataSink