ドメイン Active Directory 内を検索していますが、末尾にワイルドカードを使用すると非常に遅くなります。
これを効率的に行う良い方法はありますか?最後のワイルドカードはほぼ瞬時に機能します。
サンプルコードは次のとおりです。
User = New UserPrincipal(ctx)
User.DisplayName = "*" AQT_Searchbar.Text & "*"
Searcher.QueryFilter = User
Dim UserResult As PrincipalSearchResult(Of Principal) = Searcher.FindAll()
Dim AccountCount As Integer = UserResult.Count
MsgBox(AccountCount)
助けてくれてありがとう。