共用方式為


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);  
	}  
}  

適用於

另請參閱