SharedStorageAccessManager.CopySharedFileAsync method

Applies to Windows Phone only

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

End of phone support

Windows Phone 8.1 [Windows Phone Silverlight 8.1 apps only]

Namespace

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

Metadata

Windows.winmd

See also

SharedStorageAccessManager

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.