UtilSearchIndexerGetDirectoryRules Method
Returns all the directory rules 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 ReadOnlyCollection<CSearchScopeRule> GetDirectoryRules()
Public Shared Function GetDirectoryRules As ReadOnlyCollection(Of CSearchScopeRule)
Dim returnValue As ReadOnlyCollection(Of CSearchScopeRule)
returnValue = UtilSearchIndexer.GetDirectoryRules()
public:
static ReadOnlyCollection<CSearchScopeRule^>^ GetDirectoryRules()
static member GetDirectoryRules : unit -> ReadOnlyCollection<CSearchScopeRule>
No code example is currently available or this language may not be supported.
Return Value
ReadOnlyCollectionCSearchScopeRule
The resulting directory rules.
This is a code example.
No code example is currently available or this language may not be supported.
Dim rules As ReadOnlyCollection(Of CSearchScopeRule) = SearchIndexerUtil.GetDirectoryRules()
For Each rule As CSearchScopeRuleClass In rules.Where(Function(x) x.IsDefault = 0)
Debug.WriteLine($"{NameOf(rule.PatternOrURL)}: {rule.PatternOrURL}")
Debug.WriteLine($"{NameOf(rule.IsIncluded)}: {rule.IsIncluded = 1}")
Debug.WriteLine("")
Next
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.