FileOpenPickerUI.RemoveFile(String) Method

Definition

Removes the specified file from the list of files the user has chosen.

public:
 virtual void RemoveFile(Platform::String ^ id) = RemoveFile;
void RemoveFile(winrt::hstring const& id);
public void RemoveFile(string id);
function removeFile(id)
Public Sub RemoveFile (id As String)

Parameters

id
String

Platform::String

winrt::hstring

The identifier of the file to remove.

Remarks

The specified id should be the same as the one provided when the file was added to the file picker UI.

When the user deselects a file in the app's file picker view, the app calls this method to remove the item from the file picker UI.

Applies to

See also