AdvancedFilters.AdvancedFilterSet(String, Object, Type, MatchType) 方法

定义

为扩展类中的属性创建一个查询筛选器。

protected:
 void AdvancedFilterSet(System::String ^ attribute, System::Object ^ value, Type ^ objectType, System::DirectoryServices::AccountManagement::MatchType mt);
protected void AdvancedFilterSet (string attribute, object value, Type objectType, System.DirectoryServices.AccountManagement.MatchType mt);
[System.Security.SecurityCritical]
protected void AdvancedFilterSet (string attribute, object value, Type objectType, System.DirectoryServices.AccountManagement.MatchType mt);
member this.AdvancedFilterSet : string * obj * Type * System.DirectoryServices.AccountManagement.MatchType -> unit
[<System.Security.SecurityCritical>]
member this.AdvancedFilterSet : string * obj * Type * System.DirectoryServices.AccountManagement.MatchType -> unit
Protected Sub AdvancedFilterSet (attribute As String, value As Object, objectType As Type, mt As MatchType)

参数

attribute
String

属性名。

value
Object

一个对象。

objectType
Type

value 的对象类型。

mt
MatchType

一个 MatchType,它指定应如何将 value 与属性的值进行比较。

属性

示例

在扩展类中,你可以为 LogonCount实现高级搜索筛选器:

public class InetOrgPersonSearchFilter : AdvancedFilters  
{  
	public InetOrgPersonSearchFilter(Principal p) : base(p) { }  

	public void LogonCount(int value, MatchType mt)  
	{  
		this.AdvancedFilterSet("LogonCount", value, typeof(int), mt);  
	}  
}  

适用于

另请参阅