/// <summary> /// Get the single AD object which is matched with the filter. /// </summary> /// <param name="adOperator">The AD operator.</param> /// <param name="filter">The root AD filter.</param> /// <param name="ldapPath">The LDAP path.</param> /// <param name="queryScopeType">The query scope type<seealso cref="QueryScopeType"/>.</param> /// <returns>The single AD object which is matched with the filter.</returns> public static ADObject SingleAndDefault(IADOperator adOperator, IFilter filter, string ldapPath, QueryScopeType queryScopeType) { return(ADObject.FindOneByFilter <ADObject>(adOperator, filter, ldapPath, queryScopeType)); }
/// <summary> /// Get the single AD object which is matched with the filter. /// </summary> /// <param name="adOperator">The AD operator.</param> /// <param name="filter">The root AD filter.</param> /// <returns>The single AD object which is matched with the filter.</returns> public static ADObject SingleAndDefault(IADOperator adOperator, IFilter filter) { return(ADObject.FindOneByFilter <ADObject>(adOperator, filter)); }