| ActiveDirectoryGetEntry Method |
Gets the first entry in a search given an LDAP search filter.
Namespace:
Galactic.ActiveDirectory
Assembly:
Galactic.ActiveDirectory (in Galactic.ActiveDirectory.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax public SearchResultEntry GetEntry(
string filter,
List<string> attributes = null
)
Public Function GetEntry (
filter As String,
Optional attributes As List(Of String) = Nothing
) As SearchResultEntry
public:
SearchResultEntry^ GetEntry(
String^ filter,
List<String^>^ attributes = nullptr
)
member GetEntry :
filter : string *
?attributes : List<string>
(* Defaults:
let _attributes = defaultArg attributes null
*)
-> SearchResultEntry
Parameters
- filter
- Type: SystemString
The LDAP search filter string that will find the entry. - attributes (Optional)
- Type: System.Collections.GenericListString
(Optional) The attributes that should be returned in each entry found. If not provided, all non-constructed attributes are returned. Constructed attributes must be explicitly defined.
Return Value
Type:
SearchResultEntryThe SearchResultEntry object of the entry, or null if not found.
See Also