StorageFileHelper Class

Definition

This class provides static helper methods for StorageFile.

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

Methods

FileExistsAsync(StorageFolder, String, Boolean)

Gets a value indicating whether a file exists in the current folder.

IsFileNameValid(String)

Gets a value indicating whether a filename is correct or not using the Storage feature.

IsFilePathValid(String)

Gets a value indicating whether a file path is correct or not using the Storage feature.

ReadBytesAsync(StorageFile)

Gets an array of bytes from a StorageFile.

ReadBytesFromFileAsync(StorageFolder, String)

Gets an array of bytes from a StorageFile located in the given StorageFolder.

ReadBytesFromKnownFoldersFileAsync(KnownFolderId, String)

Gets an array of bytes from a StorageFile located in a well known folder.

ReadBytesFromLocalCacheFileAsync(String)

Gets an array of bytes from a StorageFile located in the application local cache folder.

ReadBytesFromLocalFileAsync(String)

Gets an array of bytes from a StorageFile located in the application local folder.

ReadBytesFromPackagedFileAsync(String)

Gets an array of bytes from a StorageFile located in the application installation folder.

ReadTextFromFileAsync(StorageFolder, String)

Gets a string value from a StorageFile located in the given StorageFolder.

ReadTextFromKnownFoldersFileAsync(KnownFolderId, String)

Gets a string value from a StorageFile located in a well known folder.

ReadTextFromLocalCacheFileAsync(String)

Gets a string value from a StorageFile located in the application local cache folder.

ReadTextFromLocalFileAsync(String)

Gets a string value from a StorageFile located in the application local folder.

ReadTextFromPackagedFileAsync(String)

Gets a string value from a StorageFile located in the application installation folder.

WriteBytesToFileAsync(StorageFolder, Byte[], String, CreationCollisionOption)

Saves an array of bytes to a StorageFile in the given StorageFolder.

WriteBytesToKnownFolderFileAsync(KnownFolderId, Byte[], String, CreationCollisionOption)

Saves an array of bytes to a StorageFile to well known folder/>.

WriteBytesToLocalCacheFileAsync(Byte[], String, CreationCollisionOption)

Saves an array of bytes to a StorageFile to application local cache folder/>.

WriteBytesToLocalFileAsync(Byte[], String, CreationCollisionOption)

Saves an array of bytes to a StorageFile to application local folder/>.

WriteTextToFileAsync(StorageFolder, String, String, CreationCollisionOption)

Saves a string value to a StorageFile in the given StorageFolder.

WriteTextToKnownFolderFileAsync(KnownFolderId, String, String, CreationCollisionOption)

Saves a string value to a StorageFile in well known folder/>.

WriteTextToLocalCacheFileAsync(String, String, CreationCollisionOption)

Saves a string value to a StorageFile in application local cache folder/>.

WriteTextToLocalFileAsync(String, String, CreationCollisionOption)

Saves a string value to a StorageFile in application local folder/>.

Applies to