C# Class UnifiedStorage.WindowsStorage.WindowsStorageFile

Inheritance: IFile
Datei anzeigen Open project: fiveninedigital/UnifiedStorage

Public Methods

Method Description
CopyAsync ( string newPath, CollisionOption collisionOption = CollisionOption.ReplaceExisting, CancellationToken cancellationToken = newCancellationToken() ) : Task
DeleteAsync ( CancellationToken cancellationToken = default(CancellationToken) ) : Task
ExistsAsync ( CancellationToken cancellationToken ) : Task
MoveAsync ( string newPath, CollisionOption collisionOption = CollisionOption.ReplaceExisting, CancellationToken cancellationToken = newCancellationToken() ) : Task
OpenAsync ( FileAccessOption accessOption, CancellationToken cancellationToken = newCancellationToken() ) : Task
RenameAsync ( string newName, CollisionOption collisionOption = CollisionOption.FailIfExists, CancellationToken cancellationToken = default(CancellationToken) ) : Task
WindowsStorageFile ( IStorageFile storageFile ) : System

Initializes a new instance of the WindowsStorageFile class.

WindowsStorageFile ( string path ) : System

Initializes a new instance of the WindowsStorageFile class.

Protected Methods

Method Description
EnsureExistsAsync ( CancellationToken cancellationToken ) : Task

Method Details

CopyAsync() public method

public CopyAsync ( string newPath, CollisionOption collisionOption = CollisionOption.ReplaceExisting, CancellationToken cancellationToken = newCancellationToken() ) : Task
newPath string
collisionOption CollisionOption
cancellationToken System.Threading.CancellationToken
return Task

DeleteAsync() public method

public DeleteAsync ( CancellationToken cancellationToken = default(CancellationToken) ) : Task
cancellationToken System.Threading.CancellationToken
return Task

EnsureExistsAsync() protected method

protected EnsureExistsAsync ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken
return Task

ExistsAsync() public method

public ExistsAsync ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken
return Task

MoveAsync() public method

public MoveAsync ( string newPath, CollisionOption collisionOption = CollisionOption.ReplaceExisting, CancellationToken cancellationToken = newCancellationToken() ) : Task
newPath string
collisionOption CollisionOption
cancellationToken System.Threading.CancellationToken
return Task

OpenAsync() public method

public OpenAsync ( FileAccessOption accessOption, CancellationToken cancellationToken = newCancellationToken() ) : Task
accessOption FileAccessOption
cancellationToken System.Threading.CancellationToken
return Task

RenameAsync() public method

public RenameAsync ( string newName, CollisionOption collisionOption = CollisionOption.FailIfExists, CancellationToken cancellationToken = default(CancellationToken) ) : Task
newName string
collisionOption CollisionOption
cancellationToken System.Threading.CancellationToken
return Task

WindowsStorageFile() public method

Initializes a new instance of the WindowsStorageFile class.
public WindowsStorageFile ( IStorageFile storageFile ) : System
storageFile IStorageFile The storage file.
return System

WindowsStorageFile() public method

Initializes a new instance of the WindowsStorageFile class.
public WindowsStorageFile ( string path ) : System
path string The path.
return System