StorageFileHelper 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 Windows.Storage.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 Windows.Storage.StorageFile. |
ReadBytesFromFileAsync(StorageFolder, String) |
Gets an array of bytes from a Windows.Storage.StorageFile located in the given Windows.Storage.StorageFolder. |
ReadBytesFromKnownFoldersFileAsync(KnownFolderId, String) |
Gets an array of bytes from a Windows.Storage.StorageFile located in a well known folder. |
ReadBytesFromLocalCacheFileAsync(String) |
Gets an array of bytes from a Windows.Storage.StorageFile located in the application local cache folder. |
ReadBytesFromLocalFileAsync(String) |
Gets an array of bytes from a Windows.Storage.StorageFile located in the application local folder. |
ReadBytesFromPackagedFileAsync(String) |
Gets an array of bytes from a Windows.Storage.StorageFile located in the application installation folder. |
ReadTextFromFileAsync(StorageFolder, String) |
Gets a string value from a Windows.Storage.StorageFile located in the given Windows.Storage.StorageFolder. |
ReadTextFromKnownFoldersFileAsync(KnownFolderId, String) |
Gets a string value from a Windows.Storage.StorageFile located in a well known folder. |
ReadTextFromLocalCacheFileAsync(String) |
Gets a string value from a Windows.Storage.StorageFile located in the application local cache folder. |
ReadTextFromLocalFileAsync(String) |
Gets a string value from a Windows.Storage.StorageFile located in the application local folder. |
ReadTextFromPackagedFileAsync(String) |
Gets a string value from a Windows.Storage.StorageFile located in the application installation folder. |
WriteBytesToFileAsync(StorageFolder, Byte[], String, CreationCollisionOption) |
Saves an array of bytes to a Windows.Storage.StorageFile in the given Windows.Storage.StorageFolder. |
WriteBytesToKnownFolderFileAsync(KnownFolderId, Byte[], String, CreationCollisionOption) |
Saves an array of bytes to a Windows.Storage.StorageFile to well known folder/>. |
WriteBytesToLocalCacheFileAsync(Byte[], String, CreationCollisionOption) |
Saves an array of bytes to a Windows.Storage.StorageFile to application local cache folder/>. |
WriteBytesToLocalFileAsync(Byte[], String, CreationCollisionOption) |
Saves an array of bytes to a Windows.Storage.StorageFile to application local folder/>. |
WriteTextToFileAsync(StorageFolder, String, String, CreationCollisionOption) |
Saves a string value to a Windows.Storage.StorageFile in the given Windows.Storage.StorageFolder. |
WriteTextToKnownFolderFileAsync(KnownFolderId, String, String, CreationCollisionOption) |
Saves a string value to a Windows.Storage.StorageFile in well known folder/>. |
WriteTextToLocalCacheFileAsync(String, String, CreationCollisionOption) |
Saves a string value to a Windows.Storage.StorageFile in application local cache folder/>. |
WriteTextToLocalFileAsync(String, String, CreationCollisionOption) |
Saves a string value to a Windows.Storage.StorageFile in application local folder/>. |