FileOpenPickerUI.ContainsFile(String) 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.
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
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.