IStorageServiceHandler Methods |
The IStorageServiceHandler type exposes the following members.
Name | Description | |
---|---|---|
AppendAllLines(String, IEnumerableString) |
Appends lines to a file, and then closes the file.
| |
AppendAllLines(String, IEnumerableString, Encoding) |
Appends lines to a file by using a specified encoding, and then closes the file.
| |
AppendAllText(String, String) |
Opens a file, appends the specified string to the file, and then closes the file. If the file does not exist, this method creates a file, writes the specified string to the file, then closes the file.
| |
AppendAllText(String, String, Encoding) |
Appends the specified string to the file, creating the file if it does not already exist.
| |
BuildFileUri |
Builds a Uri given a relative path to a file in the store.
| |
CopyFileAsync(String, String) |
Copies an existing file to a new file.
| |
CopyFileAsync(String, String, Boolean) |
Copies an existing file to a new file, and optionally overwrites an existing file.
| |
CreateDirectoryAsync |
Creates a directory in the storage scope.
| |
CreateFileAsync |
Creates a file in the store.
| |
DeleteDirectoryAsync |
Deletes a directory in the storage scope.
| |
DeleteFileAsync |
Deletes the specified file.
| |
DirectoryExistsAsync |
Determines whether the specified path refers to an existing directory in the store.
| |
FileExistsAsync |
Determines whether the specified path refers to an existing file in the store.
| |
GetDirectoryNamesAsync |
Enumerates the directories in the root of a store.
| |
GetDirectoryNamesAsync(String) |
Enumerates directories in a storage scope that match a given pattern.
| |
GetFileNamesAsync |
Obtains the names of files in the root of a store.
| |
GetFileNamesAsync(String) |
Enumerates files in storage scope that match a given pattern.
| |
MoveFileAsync(String, String) |
Moves an existing file to a new file.
| |
MoveFileAsync(String, String, Boolean) |
Moves an existing file to a new file, and optionally overwrites an existing file.
| |
OpenFileForReadAsync |
Opens a file in the specified mode.
| |
ReadAllBytesAsync |
Opens a binary file, reads the contents of the file into a byte array, and then closes the file. Returns null, if an exception is raised.
| |
ReadAllLinesAsync(String) |
Opens a text file, reads all lines of the file, and then closes the file.
| |
ReadAllLinesAsync(String, Encoding) |
Opens a file, reads all lines of the file with the specified encoding, and then closes the file.
| |
ReadAllTextAsync(String) |
Opens a text file, reads all lines of the file, and then closes the file.
| |
ReadAllTextAsync(String, Encoding) |
Opens a file, reads all lines of the file with the specified encoding, and then closes the file.
| |
WriteAllBytesAsync |
Creates a new file, writes the specified byte array to the file, and then closes the file. If the target file already exists, it is overwritten.
| |
WriteAllLinesAsync(String, IEnumerableString) |
Creates a new file, writes a collection of strings to the file, and then closes the file.
| |
WriteAllLinesAsync(String, IEnumerableString, Encoding) |
Creates a new file by using the specified encoding, writes a collection of strings to the file, and then closes the file.
| |
WriteAllTextAsync(String, String) |
Creates a new file, writes the specified string to the file, and then closes the file. If the target file already exists, it is overwritten.
| |
WriteAllTextAsync(String, String, Encoding) |
Creates a new file, writes the specified string to the file using the specified encoding, and then closes the file. If the target file already exists, it is overwritten.
|