Method | Description | |
---|---|---|
CopyAndReplaceAsync ( IStorageFile fileToReplace ) : System.Threading.Tasks.Task |
Replaces the specified file with a copy of the current file.
|
|
CopyAsync ( IStorageFolder destinationFolder ) : Task |
Creates a copy of the file in the specified folder.
|
|
CopyAsync ( IStorageFolder destinationFolder, string desiredNewName ) : Task |
Creates a copy of the file in the specified folder and renames the copy.
|
|
DeleteAsync ( ) : System.Threading.Tasks.Task |
Deletes the current file.
|
|
DeleteAsync ( StorageDeleteOption option ) : System.Threading.Tasks.Task |
Deletes the current file, optionally deleting the item permanently.
|
|
GetBasicPropertiesAsync ( ) : Task |
Gets the basic properties of the current file.
|
|
GetFileFromPathAsync ( string path ) : Task |
Gets a StorageFile object to represent the file at the specified path.
|
|
GetParentAsync ( ) : Task |
Gets the parent folder of the current file.
|
|
IsEqual ( IStorageItem item ) : bool |
Indicates whether the current file is equal to the specified file.
|
|
IsOfType ( StorageItemTypes type ) : bool |
Determines whether the current StorageFile matches the specified StorageItemTypes value.
|
|
MoveAndReplaceAsync ( IStorageFile fileToReplace ) : System.Threading.Tasks.Task |
Moves the current file to the location of the specified file and replaces the specified file in that location.
|
|
MoveAsync ( IStorageFolder destinationFolder ) : System.Threading.Tasks.Task |
Moves the current file to the specified folder and renames the file according to the desired name.
|
|
MoveAsync ( IStorageFolder destinationFolder, string desiredNewName ) : System.Threading.Tasks.Task |
Moves the current file to the specified folder and renames the file according to the desired name.
|
|
RenameAsync ( string desiredName ) : System.Threading.Tasks.Task |
Renames the current file.
|
|
RenameAsync ( string desiredName, NameCollisionOption option ) : System.Threading.Tasks.Task |
Renames the current file. This method also specifies what to do if an existing item in the current file's location has the same name.
|
Method | Description | |
---|---|---|
StorageFile ( Windows file ) : System | ||
StorageFile ( string path ) : System |
public CopyAndReplaceAsync ( IStorageFile fileToReplace ) : System.Threading.Tasks.Task | ||
fileToReplace | IStorageFile | |
return | System.Threading.Tasks.Task |
public CopyAsync ( IStorageFolder destinationFolder ) : Task |
||
destinationFolder | IStorageFolder | The destination folder where the copy of the file is created. |
return | Task |
public CopyAsync ( IStorageFolder destinationFolder, string desiredNewName ) : Task |
||
destinationFolder | IStorageFolder | The destination folder where the copy of the file is created. |
desiredNewName | string | The new name for the copy of the file created in the destinationFolder. |
return | Task |
public DeleteAsync ( ) : System.Threading.Tasks.Task | ||
return | System.Threading.Tasks.Task |
public DeleteAsync ( StorageDeleteOption option ) : System.Threading.Tasks.Task | ||
option | StorageDeleteOption | |
return | System.Threading.Tasks.Task |
public static GetFileFromPathAsync ( string path ) : Task |
||
path | string | The path of the file to get a StorageFile to represent. /// If your path uses slashes, make sure you use backslashes(\). /// Forward slashes(/) are not accepted by this method. |
return | Task |
public IsEqual ( IStorageItem item ) : bool | ||
item | IStorageItem | The |
return | bool |
public IsOfType ( StorageItemTypes type ) : bool | ||
type | StorageItemTypes | The value to match against. |
return | bool |
public MoveAndReplaceAsync ( IStorageFile fileToReplace ) : System.Threading.Tasks.Task | ||
fileToReplace | IStorageFile | The file to replace. |
return | System.Threading.Tasks.Task |
public MoveAsync ( IStorageFolder destinationFolder ) : System.Threading.Tasks.Task | ||
destinationFolder | IStorageFolder | The destination folder where the file is moved. |
return | System.Threading.Tasks.Task |
public MoveAsync ( IStorageFolder destinationFolder, string desiredNewName ) : System.Threading.Tasks.Task | ||
destinationFolder | IStorageFolder | The destination folder where the file is moved. |
desiredNewName | string | The desired name of the file after it is moved. |
return | System.Threading.Tasks.Task |
public RenameAsync ( string desiredName ) : System.Threading.Tasks.Task | ||
desiredName | string | The desired, new name of the current item. |
return | System.Threading.Tasks.Task |
public RenameAsync ( string desiredName, NameCollisionOption option ) : System.Threading.Tasks.Task | ||
desiredName | string | The desired, new name of the current file.
/// |
option | NameCollisionOption | The enum value that determines how the system responds if the desiredName is the same as the name of an existing item in the current file's location. |
return | System.Threading.Tasks.Task |