Table of Contents

TTMSFNCCustomCloudBox.SearchPromise Method

Searches items in a folder asynchronously and returns a promise that resolves when the request completes.

API unit family: TMSFNCCloudBox Declaring type: TTMSFNCCustomCloudBox

Syntax

function SearchPromise(const AFolderID: string; const AQuery: string; AExactMatch: Boolean = true; AFileExtensions: TTMSFNCCloudBoxStringArray = nil; AFileNameOnly: Boolean = True): IPromise<TVoid>;

Parameters

Name Description
AFolderID Folder identifier that scopes the search.
AQuery Text to search for.
AExactMatch Set to True to match file names exactly.
AFileExtensions Optional file extension filters.
AFileNameOnly Set to True to search file names instead of broader item metadata.

Returns

A promise that resolves when the search request finishes.