C# Class UnifiedStorage.DotNet.DotNetFile

Inheritance: IFile
Mostra file Open project: fiveninedigital/UnifiedStorage

Public Methods

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

Private Methods

Method Description
EnsureExists ( ) : void

Method Details

CopyAsync() public method

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

DeleteAsync() public method

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

DotNetFile() public method

public DotNetFile ( string path ) : System
path string
return System

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 = default(CancellationToken) ) : Task
newPath string
collisionOption CollisionOption
cancellationToken System.Threading.CancellationToken
return Task

OpenAsync() public method

public OpenAsync ( FileAccessOption accessOption, CancellationToken cancellationToken ) : 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