Edit

Share via


StreamHelper Class

Definition

This class provides static helper methods for streams.

public static class StreamHelper
type StreamHelper = class
Public Module StreamHelper
Inheritance
StreamHelper

Methods

GetHttpStreamAsync(Uri, CancellationToken)

Gets the response stream returned by a HTTP get request.

GetHttpStreamToStorageFileAsync(Uri, StorageFile)

Gets the response stream returned by a HTTP get request and save it to a local file.

GetKnowFoldersFileStreamAsync(KnownFolderId, String, FileAccessMode)

Gets a stream to a specified file from the application local cache folder.

GetLocalCacheFileStreamAsync(String, FileAccessMode)

Gets a stream to a specified file from the application local cache folder.

GetLocalFileStreamAsync(String, FileAccessMode)

Gets a stream to a specified file from the application local folder.

GetPackagedFileStreamAsync(String, FileAccessMode)

Gets a stream to a specified file from the installation folder.

ReadTextAsync(IRandomAccessStream, Encoding)

Reads stream content as a string.

Applies to