Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

Windows.Phone.Storage.SharedAccess
Windows::Phone::Storage::SharedAccess [C++]

Metadata

Windows.WinMD

See also

SharedStorageAccessManager

 

 

Community Additions

Show:
© 2015 Microsoft