C# Class System.IO.InTheHandRuntimeStorageExtensions

Contains extension methods for the IStorageFile and IStorageFolder interfaces for .NET interop.
显示文件 Open project: inthehand/Charming

Public Methods

Method Description
OpenStreamForReadAsync ( this windowsRuntimeFile ) : Task

Retrieves a stream for reading from a specified file.

OpenStreamForReadAsync ( this rootDirectory, string relativePath ) : Task

Retrieves a stream for reading from a file in the specified parent folder.

OpenStreamForWriteAsync ( this windowsRuntimeFile ) : Task

Retrieves a stream for writing to a specified file.

OpenStreamForWriteAsync ( this rootDirectory, string relativePath, CreationCollisionOption creationCollisionOption ) : Task

Retrieves a stream for writing from a file in the specified parent folder.

Method Details

OpenStreamForReadAsync() public static method

Retrieves a stream for reading from a specified file.
public static OpenStreamForReadAsync ( this windowsRuntimeFile ) : Task
windowsRuntimeFile this
return Task

OpenStreamForReadAsync() public static method

Retrieves a stream for reading from a file in the specified parent folder.
public static OpenStreamForReadAsync ( this rootDirectory, string relativePath ) : Task
rootDirectory this The Windows Runtime IStorageFolder object that contains the file to read from.
relativePath string The path, relative to the root folder, to the file to read from.
return Task

OpenStreamForWriteAsync() public static method

Retrieves a stream for writing to a specified file.
public static OpenStreamForWriteAsync ( this windowsRuntimeFile ) : Task
windowsRuntimeFile this The Windows Runtime IStorageFile object to write to.
return Task

OpenStreamForWriteAsync() public static method

Retrieves a stream for writing from a file in the specified parent folder.
public static OpenStreamForWriteAsync ( this rootDirectory, string relativePath, CreationCollisionOption creationCollisionOption ) : Task
rootDirectory this The Windows Runtime IStorageFolder object that contains the file to write to.
relativePath string The path, relative to the root folder, to the file to write to.
creationCollisionOption CreationCollisionOption
return Task