SharedStorageAccessManager.AddFile(IStorageFile) SharedStorageAccessManager.AddFile(IStorageFile) SharedStorageAccessManager.AddFile(IStorageFile) SharedStorageAccessManager.AddFile(IStorageFile) SharedStorageAccessManager.AddFile(IStorageFile) Method

Definition

Gets the sharing token that enables an app to share the specified file with another app.

public : static Platform::String AddFile(IStorageFile file)
static winrt::hstring AddFile(IStorageFile file) const;
public static string AddFile(IStorageFile file)
Public Shared Function AddFile(file As IStorageFile) As string
var string = Windows.ApplicationModel.DataTransfer.SharedStorageAccessManager.addFile(file);

Parameters

file
IStorageFile IStorageFile IStorageFile

The file to share with the target app.

Returns

string string string

The sharing token to provide to the target app .

Remarks

When a source app shares a file with a target app, the source app calls the AddFile method to get the sharing token that it passes to the target app.

For a code sample, see SharedStorageAccessManager.