C# Class InTheHand.Storage.StorageFolderExtensions

Provides additional methods for StorageFolder.
Datei anzeigen Open project: inthehand/Charming

Public Methods

Method Description
DeleteAllItems ( this folder ) : System.Threading.Tasks.Task

Deletes all contents of a folder without deleting the folder itself.

GetFolderSizeAsync ( this folder ) : Task

Returns the size, in bytes, of the folder and all of its contents.

Private Methods

Method Description
GetIsoStorePath ( this folder ) : string

Gets a relative path from a StorageFolder so that IsolatedStorage APIs can be used on it.

Method Details

DeleteAllItems() public static method

Deletes all contents of a folder without deleting the folder itself.
public static DeleteAllItems ( this folder ) : System.Threading.Tasks.Task
folder this
return System.Threading.Tasks.Task

GetFolderSizeAsync() public static method

Returns the size, in bytes, of the folder and all of its contents.
public static GetFolderSizeAsync ( this folder ) : Task
folder this The folder to measure
return Task