FileSearch.Execute Method
Begins the search for the specified file(s).
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)
Syntax
'Declaration
Function Execute ( _
SortBy As MsoSortBy, _
SortOrder As MsoSortOrder, _
AlwaysAccurate As Boolean _
) As Integer
'Usage
Dim instance As FileSearch
Dim SortBy As MsoSortBy
Dim SortOrder As MsoSortOrder
Dim AlwaysAccurate As Boolean
Dim returnValue As Integer
returnValue = instance.Execute(SortBy, _
SortOrder, AlwaysAccurate)
int Execute(
MsoSortBy SortBy,
MsoSortOrder SortOrder,
bool AlwaysAccurate
)
Parameters
SortBy
Type: Microsoft.Office.Core.MsoSortByOptional MsoSortBy. The method used to sort the returned file(s).
SortOrder
Type: Microsoft.Office.Core.MsoSortOrderOptional MsoSortOrder. The order in which the returned file(s) are sorted.
AlwaysAccurate
Type: System.BooleanOptional Boolean. True to include files that have been added, modified, or deleted since the file index was last updated as part of the file search. The default value is True.
Return Value
Type: System.Int32
Remarks
This property returns an Integer: zero (0) if no files are found, or a positive number if one or more files are found.