AdvancedFilters.AdvancedFilterSet(String, Object, Type, MatchType) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在擴充類別中建立屬性的查詢篩選器。
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
的物件類型。
- 屬性
範例
在擴充類別中,您可以實作 的 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);
}
}