Share via


FileOpenPickerUI.ContainsFile(String) Method

Definition

Determines whether the specified file is in the list of files that the user has chosen.

public:
 virtual bool ContainsFile(Platform::String ^ id) = ContainsFile;
bool ContainsFile(winrt::hstring const& id);
public bool ContainsFile(string id);
function containsFile(id)
Public Function ContainsFile (id As String) As Boolean

Parameters

id
String

Platform::String

winrt::hstring

The identifier of the file.

Returns

Boolean

bool

True if the file is in the basket; otherwise false.

Remarks

An app hosted in the file picker can use this method to determine whether a file that the app previously added is still in the file picker UI. The user or the app might have removed the file, or the file might not have been added in the first place.

Applies to

See also