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

  • AlwaysAccurate
    Type: System.Boolean

    Optional 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.

See Also

Reference

FileSearch Interface

FileSearch Members

Microsoft.Office.Core Namespace