AdvancedCriteriaItem
The AdvancedCriteriaItem class represents an advanced criteria item used in Criteria.
Inheritance: CriteriaItem
Implements: IAdmAdvancedCriteriaItem
Namespace: Softerra.Adaxes.Directory.Criteria
Methods
-
Method
-
Description
-
SetLdapFilter()
-
Sets an LDAP filter.
Details
SetLdapFilter()
Sets an LDAP filter to use in this criteria item.
AdvancedCriteriaItem SetLdapFilter(string value)
Parameters
The value parameter specifies the LDAP filter to set.
Return value
The method returns this instance of AdvancedCriteriaItem after updating it.
Examples
The following code sample creates Criteria using an LDAP filter.
- PowerShell
-
$criteria = YOUR-CRITERIA # Set LDAP filter for the criteria item. $criteriaItem = $criteria.CreateAdvanced() $criteriaItem.SetLdapFilter("(department=Marketing)") # Apply criteria item to the 'User' object type. $criteria.AddType("user", $criteriaItem)
- C#
-
using Softerra.Adaxes.Directory.Criteria; class Program { public static void Main() { criteria = <YOUR-CRITERIA> // Set LDAP filter for the criteria item. AdvancedCriteriaItem criteriaItem = new(); criteriaItem.SetLdapFilter("(department=Marketing)"); // Apply criteria item to the 'User' object type. criteria.AddType("user", criteriaItem); } }
Requirements
Minimum required version: 2023