Bagikan melalui


AdvancedFilters.AdvancedFilterSet(String, Object, Type, MatchType) Metode

Definisi

Membuat filter kueri untuk properti di kelas yang diperluas.

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)

Parameter

attribute
String

Nama atribut .

value
Object

Sebuah objek.

objectType
Type

Jenis objek .value

mt
MatchType

MatchType yang menentukan bagaimana value harus dibandingkan dengan nilai atribut.

Atribut

Contoh

Di kelas yang diperluas, Anda mungkin menerapkan filter pencarian tingkat lanjut untuk 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);  
	}  
}  

Berlaku untuk

Lihat juga