UtilSearchIndexerFindDirectoryRule(String) Method
Finds a directory rule that matches the specified directory path in Windows Search Index.
Namespace: DevCase.ThirdParty.MicrosoftSearchIndexerAssembly: DevCase.net48.ThirdParty.MicrosoftSearchIndexer (in DevCase.net48.ThirdParty.MicrosoftSearchIndexer.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static CSearchScopeRule FindDirectoryRule(
string directoryPathOrPattern
)
Public Shared Function FindDirectoryRule (
directoryPathOrPattern As String
) As CSearchScopeRule
Dim directoryPathOrPattern As String
Dim returnValue As CSearchScopeRule
returnValue = UtilSearchIndexer.FindDirectoryRule(directoryPathOrPattern)
public:
static CSearchScopeRule^ FindDirectoryRule(
String^ directoryPathOrPattern
)
static member FindDirectoryRule :
directoryPathOrPattern : string -> CSearchScopeRule
No code example is currently available or this language may not be supported.
- directoryPathOrPattern String
-
The directory path (or a directory path pattern with wildcards) to find.
CSearchScopeRule
The resulting directory rule,
or
if does not exist a directory rule that matches the specified directory path.
This is a code example.
No code example is currently available or this language may not be supported.
Dim directoryPath As String = "C:\Games\"
Dim rule As CSearchScopeRule = FindDirectoryRule(directoryPath)
If rule IsNot Nothing Then
Debug.WriteLine($"{NameOf(rule.PatternOrURL)}: {rule.PatternOrURL}")
Debug.WriteLine($"{NameOf(rule.IsIncluded)}: {rule.IsIncluded = 1}")
End If
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.