FileOpenPickerUI.AddFile(String, IStorageFile) Method

Definition

Adds the specified file to the list of files that the user has chosen.

public:
 virtual AddFileResult AddFile(Platform::String ^ id, IStorageFile ^ file) = AddFile;
AddFileResult AddFile(winrt::hstring const& id, IStorageFile const& file);
public AddFileResult AddFile(string id, IStorageFile file);
function addFile(id, file)
Public Function AddFile (id As String, file As IStorageFile) As AddFileResult

Parameters

id
String

Platform::String

winrt::hstring

A unique identifier of the file to add.

file
IStorageFile

The file to add to the list of files that the user has chosen.

Returns

The enumeration value that indicates the result of this addFile method.

Applies to

See also