Class ExampleDataProvider
An implementation of IDataProvider that wraps a Windows.Storage.Streams.IRandomAccessStream.
Inheritance
System.Object
ExampleDataProvider
Assembly: Catalog.dll
Syntax
public sealed class ExampleDataProvider : IDataProvider
Constructors
ExampleDataProvider(IRandomAccessStream)
Declaration
public ExampleDataProvider(IRandomAccessStream stream)
Parameters
Type |
Name |
Description |
Windows.Storage.Streams.IRandomAccessStream |
stream |
The Windows.Storage.Streams.IRandomAccessStream that provides the data.
|
Properties
Size
Declaration
public ulong Size { get; }
Property Value
Type |
Description |
System.UInt64 |
|
SupportsWriting
Declaration
public bool SupportsWriting { get; }
Property Value
Type |
Description |
System.Boolean |
|
Uid
Declaration
public string Uid { get; }
Property Value
Type |
Description |
System.String |
|
Methods
CreateDataSink(DataSinkOption)
Declaration
public IDataSink CreateDataSink(DataSinkOption option)
Parameters
Returns
ReadAsync(UInt32, UInt32)
Declaration
public IAsyncOperation<IBuffer> ReadAsync(uint size, uint offset)
Parameters
Type |
Name |
Description |
System.UInt32 |
size |
|
System.UInt32 |
offset |
|
Returns
Type |
Description |
Windows.Foundation.IAsyncOperation<Windows.Storage.Streams.IBuffer> |
|
ReplaceWithDataSinkAsync(IDataSink)
Declaration
public IAsyncOperation<bool> ReplaceWithDataSinkAsync(IDataSink dataSink)
Parameters
Returns
Type |
Description |
Windows.Foundation.IAsyncOperation<System.Boolean> |
|
Implements