AdvancedFilters Class
This class provides writable access to certain attributes so that users can modify read-only properties of the "dummy" principal object that is passed to a PrincipalSearcher object when using Query By Example.
Assembly: System.DirectoryServices.AccountManagement (in System.DirectoryServices.AccountManagement.dll)
| Name | Description | |
|---|---|---|
![]() | AdvancedFilters(Principal^) | Instantiates a new AdvancedFilters object. Not intended to be called directly. |
| Name | Description | |
|---|---|---|
![]() | AccountExpirationDate(DateTime, MatchType) | Sets the query filter for the AccountExpirationDate attribute to the specified time and comparison type. |
![]() | AccountLockoutTime(DateTime, MatchType) | Sets the AccountLockoutTime query filter to the specified time and comparison type. |
![]() | AdvancedFilterSet(String^, Object^, Type^, MatchType) | Creates a query filter for a property in an extended class. |
![]() | BadLogonCount(Int32, MatchType) | Sets the query filter for the BadLogonCount attribute to the specified value and comparison type. |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | LastBadPasswordAttempt(DateTime, MatchType) | Sets the query filter for the LastBadPasswordAttempt attribute to the specified DateTime and the specified comparison value. |
![]() | LastLogonTime(DateTime, MatchType) | |
![]() | LastPasswordSetTime(DateTime, MatchType) | Sets the query filter for the LastPasswordSet attribute to the specified DateTime and the specified comparison value. |
![]() | MemberwiseClone() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
The AdvancedFilters class is accessed from a UserPrincipal object through the AdvancedSearchFilter property, and is effectually treated like a property of the UserPrincipal object, and isn't intended to be used on its own.
See the Query By Example topic for example code.
Available since 3.5
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

