TTMSFNCCloudGoogleDrive.SearchPromise Method
Promise-based variant of
Search.
API unit family: TMSFNCCloudGoogleDrive
Declaring type: TTMSFNCCloudGoogleDrive
Inherited from: TTMSFNCCustomCloudGoogleDrive
Syntax
function SearchPromise(const AFolderID, AQuery: string; AExactMatch: Boolean; AFileExtension: string = ''; AFileNameOnly: Boolean = True): IPromise<TVoid>;
Parameters
| Name | Description |
|---|---|
AFolderID |
Identifier of the folder to search; pass an empty string to search from the root. |
AQuery |
Text to match. |
AExactMatch |
When True, requires an exact match rather than a partial one. |
AFileExtension |
Optional file extension filter; empty matches any extension. |
AFileNameOnly |
When True, matches only against the item name rather than its content. |
Returns
A promise that resolves when the search has completed.