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.

Namespace:   System.DirectoryServices.AccountManagement
Assembly:  System.DirectoryServices.AccountManagement (in System.DirectoryServices.AccountManagement.dll)

System.Object
  System.DirectoryServices.AccountManagement.AdvancedFilters

[DirectoryServicesPermissionAttribute(SecurityAction.LinkDemand, 
	Unrestricted = true)]
[DirectoryServicesPermissionAttribute(SecurityAction.InheritanceDemand, 
	Unrestricted = true)]
public class AdvancedFilters

NameDescription
System_CAPS_protmethodAdvancedFilters(Principal)

Instantiates a new AdvancedFilters object. Not intended to be called directly.

NameDescription
System_CAPS_pubmethodAccountExpirationDate(DateTime, MatchType)

Sets the query filter for the AccountExpirationDate attribute to the specified time and comparison type.

System_CAPS_pubmethodAccountLockoutTime(DateTime, MatchType)

Sets the AccountLockoutTime query filter to the specified time and comparison type.

System_CAPS_protmethodAdvancedFilterSet(String, Object, Type, MatchType)

Creates a query filter for a property in an extended class.

System_CAPS_pubmethodBadLogonCount(Int32, MatchType)

Sets the query filter for the BadLogonCount attribute to the specified value and comparison type.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodLastBadPasswordAttempt(DateTime, MatchType)

Sets the query filter for the LastBadPasswordAttempt attribute to the specified DateTime and the specified comparison value.

System_CAPS_pubmethodLastLogonTime(DateTime, MatchType)

Sets the query filter for the LastLogon attribute to the specified DateTime and the specified comparison value.

System_CAPS_pubmethodLastPasswordSetTime(DateTime, MatchType)

Sets the query filter for the LastPasswordSet attribute to the specified DateTime and the specified comparison value.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

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.

.NET Framework
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.

Return to top
Show: