StreamHelper Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |