コード例 #1
0
 /// <summary>
 /// Combine the existing LDAP filter with the specified LDAP filter to create a new Or LDAP Filter.
 /// </summary>
 /// <param name="ldapFilter">A LDAP Filter.</param>
 /// <returns>a filter that contains an Or LDAP Filter.</returns>
 public LdapFilter Or(LdapFilter ldapFilter)
 {
     return(Or(Check.NotNull(ldapFilter, nameof(ldapFilter)).ToString(), false));
 }
コード例 #2
0
 /// <summary>
 /// Combine the existing LDAP filter with the specified LDAP filter to create a new Or LDAP Filter.
 /// </summary>
 /// <param name="ldapFilter">A LDAP Filter.</param>
 /// <param name="appendFilter">if set to <c>true</c> append the filter.</param>
 /// <returns>a filter that contains an Or LDAP Filter.</returns>
 public LdapFilter Or(LdapFilter ldapFilter, bool appendFilter)
 {
     return(Or(Check.NotNull(ldapFilter, nameof(ldapFilter)).ToString(), appendFilter));
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LdapQuery"/> class.
 /// </summary>
 /// <param name="dn">The DistinguishedName of the root.</param>
 /// <param name="filter">The search filter string in LDAP format.</param>
 /// <param name="globalCatalog">if set to <c>true</c>, use the global catalog.</param>
 public LdapQuery(DistinguishedName dn, LdapFilter filter, bool globalCatalog)
     : this(dn, filter?.ToString(), globalCatalog)
 {
 }