Share via


SharedStorageAccessManager.AddFile(IStorageFile) Method

Definition

Overloads

AddFile(IStorageFile)

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

AddFile(IStorageFile)

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 const& file);
public static string AddFile(IStorageFile file);
function addFile(file)
Public Shared Function AddFile (file As IStorageFile) As String

Parameters

file
IStorageFile

The file to share with the target app.

Returns

String

Platform::String

winrt::hstring

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.

Applies to