StorageServiceHandler Class |
Namespace: Cimbalino.Toolkit.Services
public class StorageServiceHandler : IStorageServiceHandler
The StorageServiceHandler type exposes the following members.
Name | Description | |
---|---|---|
StorageServiceHandler |
Initializes a new instance of the StorageServiceHandler class.
|
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.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
FileExistsAsync |
Determines whether the specified path refers to an existing file in the store.
| |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
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.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
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.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
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.
|
Name | Description | |
---|---|---|
StorageFolder |
The root StorageFolder instance.
|
Name | Description | |
---|---|---|
AddEventHandler |
Adds an event handler to an event source.
(Defined by ObjectExtensions.) | |
GetPropertyValue(String) | Overloaded.
Searches for the public property with the specified name and gets its value.
(Defined by ObjectExtensions.) | |
GetPropertyValueTObject(String) | Overloaded.
Searches for the public property with the specified name and gets its value.
(Defined by ObjectExtensions.) | |
InvokeMethod(String, Object) | Overloaded.
Searches for the public method with the specified name and invokes it using the specified parameters.
(Defined by ObjectExtensions.) | |
InvokeMethodTObject(String, Object) | Overloaded.
Searches for the public method with the specified name and invokes it using the specified parameters, returning the result.
(Defined by ObjectExtensions.) | |
RemoveEventHandler |
Removes an event handler from an event source.
(Defined by ObjectExtensions.) | |
SetPropertyValueTObject |
Searches for the public property with the specified name and sets its value.
(Defined by ObjectExtensions.) |