siranthony
Programmer
I have some code that searches Active Directory with a DirectorySearcher. It returns a SearchResult. My question is, how can I find the node type (e.g., user or contact) that the SearchResult represents?
Here is some abbreviated code:
Dim mySearcher As New System.DirectoryServices.DirectorySearcher()
Dim myResult As System.DirectoryServices.SearchResult
...
For Each myResult In mySearcher.FindAll()
' Get the node type of myResult
...
Next
Here is some abbreviated code:
Dim mySearcher As New System.DirectoryServices.DirectorySearcher()
Dim myResult As System.DirectoryServices.SearchResult
...
For Each myResult In mySearcher.FindAll()
' Get the node type of myResult
...
Next