SharedStorageAccessManager.AddFile(IStorageFile) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.