SharedStorageAccessManager.CopySharedFileAsync method
Copies a file to the specified destination. For files that have been shared with a file association.
Syntax
public static IAsyncOperation<IStorageFile> CopySharedFileAsync( StorageFolder destinationFolder, string desiredName, NameCollisionOption option, string fileToken )
Parameters
- destinationFolder
-
Type: StorageFolder
The destination folder, where the file will be copied to.
- desiredName
-
Type: System.String [.NET] | Platform::String [C++]
The name of the new file in the destination folder.
- option
-
Type: NameCollisionOption
Specifies what to do if there is an existing file with the same name in the destination folder.
- fileToken
-
Type: System.String [.NET] | Platform::String [C++]
The ID of the file from the file association.
Return value
Type: IAsyncOperation<IStorageFile>
The asynchronous copy operation, returning a reference to the file in the destination folder.
Requirements
|
Minimum supported client |
None supported |
|---|---|
|
Minimum supported server |
None supported |
|
Minimum supported phone |
Windows Phone 8 |
|
Namespace |
|
|
Metadata |
|
See also