Méthode | Description | |
---|---|---|
CreateDirectoryTree ( string filepath ) : void |
Creates all of the directories included in the given filepath.
|
|
CreateDirectoryTree ( string filepath, |
Creates all of the directories included in the given filepath.
|
|
DeleteDirectoryTree ( string filepath ) : void |
Deletes all of the folders and their contents in a given file-path.
|
|
DeleteDirectoryTree ( string filepath, |
Deletes all of the folders and their contents in a given file-path.
|
|
DeleteFile ( string filename ) : void |
Used for deleting a file from IsolatedStorage.
|
|
DeleteFile ( string filename, |
Used for deleting a file from IsolatedStorage.
|
|
DirectoryExists ( string directorypath ) : bool |
Verifies whether or not a given directory exists in IsolatedStorage
|
|
DirectoryExists ( string directorypath, |
Verifies whether or not a given directory exists in IsolatedStorage
|
|
FileExists ( string filepath ) : bool |
Determines whether or not a given filepath exists.
|
|
FileExists ( string filepath, |
Determines whether or not a given filepath exists.
|
|
GetApplicationSetting ( string key ) : object |
Retrieves an object from the application settings store
|
|
GetFileAge ( string filepath ) : DateTimeOffset |
Determines the age of a file based on the last time it was written to
|
|
GetFileAge ( string filepath, |
Determines the age of a file based on the last time it was written to
|
|
GetFullDirectoryPath ( string filepath ) : string |
Extracts the directory path based on what's present in a given filename.
|
|
GetRootDirectory ( string filepath ) : string |
Extracts the root folder from a path and returns its name
|
|
GetSafeFileName ( string filename ) : string |
Returns a safe filename based on an incoming string. Makes it easy to create valid filenames based off of any type of string.
|
|
GetSiteSetting ( string key ) : object |
Retrieves an object from the site settings store
|
|
HasDirectories ( string filepath ) : bool |
Returns true if a given path contains folders
|
|
MakeFile ( byte data, string filepath ) : void |
Create a file in IsolatedStorage.
|
|
MakeFile ( byte data, string filepath, |
Create a file in IsolatedStorage.
|
|
MakeFile ( string textdata, string filepath ) : void |
Create a file in IsolatedStorage.
|
|
MakeFile ( string textdata, string filepath, |
Create a file in IsolatedStorage.
|
|
ReadFileStream ( string filepath ) : Stream |
Begins reading the file from IsolatedStorage as a stream.
|
|
ReadFileStream ( string filepath, |
Begins reading the file from IsolatedStorage as a stream.
|
|
ReadFileText ( string filepath ) : string |
Returns the contents of a file as text.
|
|
ReadFileText ( string filepath, |
Returns the contents of a file as text.
|
|
RemoveApplicationSetting ( string key ) : void |
Removes an object from the application settings store
|
|
RemoveSiteSetting ( string key ) : void |
Removes an object from the site settings store
|
|
SaveApplicationSetting ( string key, object value ) : void |
Adds a new object to the application settings store
|
|
SaveSiteSetting ( string key, object value ) : void |
Adds a new object to the site settings store
|
Méthode | Description | |
---|---|---|
DeleteSetting ( System.IO.IsolatedStorage.IsolatedStorageSettings store, string key ) : void |
Private helper method for performing deletes on a setting
|
|
GetApplicationSettings ( ) : System.IO.IsolatedStorage.IsolatedStorageSettings |
Internal factory method for creating an accessor to the application's settings collection
|
|
GetSiteSettings ( ) : System.IO.IsolatedStorage.IsolatedStorageSettings |
Internal factory method for creating an accessor to the site's settings collection
|
|
GetStore ( ) : |
Internal factory method for creating storage instances used in other methods.
|
|
SafeGetStorageValue ( System.IO.IsolatedStorage.IsolatedStorageSettings store, string key ) : object |
Returns a value from storage if it exists; otherwise, null
|
|
SaveOrUpdateSetting ( System.IO.IsolatedStorage.IsolatedStorageSettings store, string key, object value ) : void |
Private helper method for performing saves on settings
|
public static CreateDirectoryTree ( string filepath ) : void | ||
filepath | string | A string containing a filepath which may or may not contain any number of directories. |
Résultat | void |
public static CreateDirectoryTree ( string filepath, |
||
filepath | string | A string containing a filepath which may or may not contain any number of directories. |
storage | A reference to a valid IsolatedStorageFile instance | |
Résultat | void |
public static DeleteDirectoryTree ( string filepath ) : void | ||
filepath | string | A valid filepath in IsolatedStorage. |
Résultat | void |
public static DeleteDirectoryTree ( string filepath, |
||
filepath | string | A valid filepath in IsolatedStorage. |
storage | A reference to a valid IsolateStorageFile object. | |
Résultat | void |
public static DeleteFile ( string filename ) : void | ||
filename | string | The name of the file to be deleted. |
Résultat | void |
public static DeleteFile ( string filename, |
||
filename | string | The name of the file to be deleted. |
storage | A reference to an activate IsolatedStorageFile object. | |
Résultat | void |
public static DirectoryExists ( string directorypath ) : bool | ||
directorypath | string | The path to a given directory |
Résultat | bool |
public static DirectoryExists ( string directorypath, |
||
directorypath | string | The path to a given directory |
storage | A reference to a valid IsolatedStorageFile instance. | |
Résultat | bool |
public static FileExists ( string filepath ) : bool | ||
filepath | string | A string containing a filepath. |
Résultat | bool |
public static FileExists ( string filepath, |
||
filepath | string | A string containing a filepath. |
storage | A reference to a valid IsolatedStorageFile instance. | |
Résultat | bool |
public static GetApplicationSetting ( string key ) : object | ||
key | string | The key to identify the object with |
Résultat | object |
public static GetFileAge ( string filepath ) : DateTimeOffset | ||
filepath | string | The path of the file to test. |
Résultat | DateTimeOffset |
public static GetFileAge ( string filepath, |
||
filepath | string | The path of the file to test. |
storage | A reference to a valid IsolatedStorageFile instance. | |
Résultat | DateTimeOffset |
public static GetFullDirectoryPath ( string filepath ) : string | ||
filepath | string | A string containing a filepath which may or may not contain any number of directories. |
Résultat | string |
public static GetRootDirectory ( string filepath ) : string | ||
filepath | string | A filepath to be evaluated |
Résultat | string |
public static GetSafeFileName ( string filename ) : string | ||
filename | string | A string which doesn't necessarily contain a valid filename. |
Résultat | string |
public static GetSiteSetting ( string key ) : object | ||
key | string | The key to identify the object with |
Résultat | object |
public static HasDirectories ( string filepath ) : bool | ||
filepath | string | A filepath to test |
Résultat | bool |
public static MakeFile ( byte data, string filepath ) : void | ||
data | byte | The data you want to write, expressed as a byte array. |
filepath | string | The path of the file you want to write. |
Résultat | void |
public static MakeFile ( byte data, string filepath, |
||
data | byte | The data you want to write, expressed as a byte array. |
filepath | string | The path of the file you want to write. |
storage | A reference to a valid IsolatedStorageFile instance. | |
Résultat | void |
public static MakeFile ( string textdata, string filepath ) : void | ||
textdata | string | The data you want to write, expressed as a string. |
filepath | string | The path of the file you want to write. |
Résultat | void |
public static MakeFile ( string textdata, string filepath, |
||
textdata | string | The data you want to write, expressed as a string. |
filepath | string | The path of the file you want to write. |
storage | A reference to a valid IsolatedStorageFile instance. | |
Résultat | void |
public static ReadFileStream ( string filepath ) : Stream | ||
filepath | string | The path to the file. |
Résultat | Stream |
public static ReadFileStream ( string filepath, |
||
filepath | string | The path to the file. |
storage | A valid IsolatedStorageFile instance. | |
Résultat | Stream |
public static ReadFileText ( string filepath ) : string | ||
filepath | string | The path to the file. |
Résultat | string |
public static ReadFileText ( string filepath, |
||
filepath | string | The path to the file. |
storage | A reference to a valid IsolatedStorageFile instance. | |
Résultat | string |
public static RemoveApplicationSetting ( string key ) : void | ||
key | string | |
Résultat | void |
public static RemoveSiteSetting ( string key ) : void | ||
key | string | |
Résultat | void |
public static SaveApplicationSetting ( string key, object value ) : void | ||
key | string | The key to identify the object with |
value | object | The object to put into storage |
Résultat | void |
public static SaveSiteSetting ( string key, object value ) : void | ||
key | string | The key to identify the object with |
value | object | The object to put into storage |
Résultat | void |