SharedStorageAccessManager.RedeemTokenForFileAsync(String) SharedStorageAccessManager.RedeemTokenForFileAsync(String) SharedStorageAccessManager.RedeemTokenForFileAsync(String) SharedStorageAccessManager.RedeemTokenForFileAsync(String) SharedStorageAccessManager.RedeemTokenForFileAsync(String) Method

Definition

Gets a file shared by another app by providing the sharing token received from the source app.

public : static IAsyncOperation<StorageFile> RedeemTokenForFileAsync(Platform::String token)
static IAsyncOperation<StorageFile> RedeemTokenForFileAsync(winrt::hstring token) const;
public static IAsyncOperation<StorageFile> RedeemTokenForFileAsync(String token)
Public Shared Function RedeemTokenForFileAsync(token As String) As IAsyncOperation(Of StorageFile)
Windows.ApplicationModel.DataTransfer.SharedStorageAccessManager.redeemTokenForFileAsync(token).done( /* Your success and error handlers */ );

Parameters

token
String String String

The sharing token for the shared file.

Returns

Remarks

When a source app shares a file with a target app, the target app calls the RedeemTokenForFileAsync method to get the shared file.

For a code sample, see SharedStorageAccessManager.