UtilSearchIndexerFindDirectoryRule(DirectoryInfo) 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(
DirectoryInfo directory
)
Public Shared Function FindDirectoryRule (
directory As DirectoryInfo
) As CSearchScopeRule
Dim directory As DirectoryInfo
Dim returnValue As CSearchScopeRule
returnValue = UtilSearchIndexer.FindDirectoryRule(directory)
public:
static CSearchScopeRule^ FindDirectoryRule(
DirectoryInfo^ directory
)
static member FindDirectoryRule :
directory : DirectoryInfo -> CSearchScopeRule
No code example is currently available or this language may not be supported.
- directory DirectoryInfo
-
The directory path 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 directory As New DirectoryInfo("C:\Games\")
Dim rule As CSearchScopeRule = FindDirectoryRule(directory)
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.