C# Class Universal.Torrent.Common.StorageHelper

Afficher le fichier Open project: haroldma/Universal.Torrent

Méthodes publiques

Méthode Description
CreateFileAsync ( string path, StorageFolder folder, CreationCollisionOption option = CreationCollisionOption.OpenIfExists ) : Task
CreateFileAsync ( string path, StorageStrategy location = StorageStrategy.Local, CreationCollisionOption option = CreationCollisionOption.OpenIfExists ) : Task
DeleteFileAsync ( string path, StorageFolder folder ) : Task
DeleteFileAsync ( string path, StorageStrategy location = StorageStrategy.Local ) : Task
DeleteFolderContentAsync ( StorageFolder folder ) : System.Threading.Tasks.Task
DeleteFolderContentAsync ( StorageStrategy location ) : System.Threading.Tasks.Task
EnsureFolderExistsAsync ( string path, StorageFolder parentFolder ) : Task
EnsureFolderExistsAsync ( string path, StorageStrategy location = StorageStrategy.Local ) : Task
FileExistsAsync ( string path, StorageFolder folder ) : Task
FileExistsAsync ( string path, StorageStrategy location = StorageStrategy.Local ) : Task
GetFileAsync ( string path, StorageFolder folder ) : Task
GetFileAsync ( string path, StorageStrategy location = StorageStrategy.Local ) : Task
GetFolderAsync ( string path, StorageFolder parentFolder ) : Task
GetFolderAsync ( string path, StorageStrategy location = StorageStrategy.Local ) : Task
GetFolderFromStrategy ( StorageStrategy location ) : StorageFolder
GetIfFileExistsAsync ( string path, StorageFolder folder ) : Task
GetIfFileExistsAsync ( string path, StorageStrategy strategy = StorageStrategy.Local ) : Task
GetReaderForFileAsync ( string path, StorageFolder folder ) : Task
GetReaderForFileAsync ( string path, StorageStrategy location = StorageStrategy.Local ) : Task
GetWriterForFileAsync ( string path, StorageFolder folder ) : Task
GetWriterForFileAsync ( string path, StorageStrategy location = StorageStrategy.Local ) : Task

Private Methods

Méthode Description
_EnsureFolderExistsAsync ( string name, StorageFolder parent ) : Task
_GetFolderAsync ( string name, StorageFolder parent ) : Task

Method Details

CreateFileAsync() public static méthode

public static CreateFileAsync ( string path, StorageFolder folder, CreationCollisionOption option = CreationCollisionOption.OpenIfExists ) : Task
path string
folder Windows.Storage.StorageFolder
option CreationCollisionOption
Résultat Task

CreateFileAsync() public static méthode

public static CreateFileAsync ( string path, StorageStrategy location = StorageStrategy.Local, CreationCollisionOption option = CreationCollisionOption.OpenIfExists ) : Task
path string
location StorageStrategy
option CreationCollisionOption
Résultat Task

DeleteFileAsync() public static méthode

public static DeleteFileAsync ( string path, StorageFolder folder ) : Task
path string
folder Windows.Storage.StorageFolder
Résultat Task

DeleteFileAsync() public static méthode

public static DeleteFileAsync ( string path, StorageStrategy location = StorageStrategy.Local ) : Task
path string
location StorageStrategy
Résultat Task

DeleteFolderContentAsync() public static méthode

public static DeleteFolderContentAsync ( StorageFolder folder ) : System.Threading.Tasks.Task
folder Windows.Storage.StorageFolder
Résultat System.Threading.Tasks.Task

DeleteFolderContentAsync() public static méthode

public static DeleteFolderContentAsync ( StorageStrategy location ) : System.Threading.Tasks.Task
location StorageStrategy
Résultat System.Threading.Tasks.Task

EnsureFolderExistsAsync() public static méthode

public static EnsureFolderExistsAsync ( string path, StorageFolder parentFolder ) : Task
path string
parentFolder Windows.Storage.StorageFolder
Résultat Task

EnsureFolderExistsAsync() public static méthode

public static EnsureFolderExistsAsync ( string path, StorageStrategy location = StorageStrategy.Local ) : Task
path string
location StorageStrategy
Résultat Task

FileExistsAsync() public static méthode

public static FileExistsAsync ( string path, StorageFolder folder ) : Task
path string
folder Windows.Storage.StorageFolder
Résultat Task

FileExistsAsync() public static méthode

public static FileExistsAsync ( string path, StorageStrategy location = StorageStrategy.Local ) : Task
path string
location StorageStrategy
Résultat Task

GetFileAsync() public static méthode

public static GetFileAsync ( string path, StorageFolder folder ) : Task
path string
folder Windows.Storage.StorageFolder
Résultat Task

GetFileAsync() public static méthode

public static GetFileAsync ( string path, StorageStrategy location = StorageStrategy.Local ) : Task
path string
location StorageStrategy
Résultat Task

GetFolderAsync() public static méthode

public static GetFolderAsync ( string path, StorageFolder parentFolder ) : Task
path string
parentFolder Windows.Storage.StorageFolder
Résultat Task

GetFolderAsync() public static méthode

public static GetFolderAsync ( string path, StorageStrategy location = StorageStrategy.Local ) : Task
path string
location StorageStrategy
Résultat Task

GetFolderFromStrategy() public static méthode

public static GetFolderFromStrategy ( StorageStrategy location ) : StorageFolder
location StorageStrategy
Résultat Windows.Storage.StorageFolder

GetIfFileExistsAsync() public static méthode

public static GetIfFileExistsAsync ( string path, StorageFolder folder ) : Task
path string
folder Windows.Storage.StorageFolder
Résultat Task

GetIfFileExistsAsync() public static méthode

public static GetIfFileExistsAsync ( string path, StorageStrategy strategy = StorageStrategy.Local ) : Task
path string
strategy StorageStrategy
Résultat Task

GetReaderForFileAsync() public static méthode

public static GetReaderForFileAsync ( string path, StorageFolder folder ) : Task
path string
folder Windows.Storage.StorageFolder
Résultat Task

GetReaderForFileAsync() public static méthode

public static GetReaderForFileAsync ( string path, StorageStrategy location = StorageStrategy.Local ) : Task
path string
location StorageStrategy
Résultat Task

GetWriterForFileAsync() public static méthode

public static GetWriterForFileAsync ( string path, StorageFolder folder ) : Task
path string
folder Windows.Storage.StorageFolder
Résultat Task

GetWriterForFileAsync() public static méthode

public static GetWriterForFileAsync ( string path, StorageStrategy location = StorageStrategy.Local ) : Task
path string
location StorageStrategy
Résultat Task