Share via


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);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<StorageFile> RedeemTokenForFileAsync(winrt::hstring const& token);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<StorageFile> RedeemTokenForFileAsync(string token);
function redeemTokenForFileAsync(token)
Public Shared Function RedeemTokenForFileAsync (token As String) As IAsyncOperation(Of StorageFile)

Parameters

token
String

Platform::String

winrt::hstring

The sharing token for the shared file.

Returns

A wrapper object that contains the shared file.

Attributes

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.

Applies to