MemberFilter MemberFilter MemberFilter MemberFilter Delegate

定義

代表用來篩選成員清單的委派,這些成員為 MemberInfo 物件陣列中代表的成員。Represents a delegate that is used to filter a list of members represented in an array of MemberInfo objects.

public delegate bool MemberFilter(MemberInfo ^ m, System::Object ^ filterCriteria);
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public delegate bool MemberFilter(MemberInfo m, object filterCriteria);
type MemberFilter = delegate of MemberInfo * obj -> bool
Public Delegate Function MemberFilter(m As MemberInfo, filterCriteria As Object) As Boolean 

參數

m
MemberInfo MemberInfo MemberInfo MemberInfo

要套用篩選條件的 MemberInfo 物件。The MemberInfo object to which the filter is applied.

filterCriteria
Object Object Object Object

用來篩選清單的任意物件。An arbitrary object used to filter the list.

傳回值

System.Boolean

若要在篩選清單中包含成員,則為 true;否則為 falsetrue to include the member in the filtered list; otherwise false.

繼承
MemberFilterMemberFilterMemberFilterMemberFilter
屬性

備註

Delegate Invoke和的每個衍生類別都有一個函式和方法。MulticastDelegateEvery derived class of a Delegate and MulticastDelegate has a constructor and an Invoke method. (請參閱中Delegate的程式碼範例)。(See the code example in Delegate.)

FindMembers方法會使用這個委派來篩選其傳回的成員清單。The FindMembers method uses this delegate to filter the list of members that it returns.

擴充方法

GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate)

取得表示特定委派所代表之方法的物件。Gets an object that represents the method represented by the specified delegate.

適用於

另請參閱