MemberFilter 委托

定义

表示用于筛选以 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 对象。The MemberInfo object to which the filter is applied.

filterCriteria
Object

用于筛选列表的任意对象。An arbitrary object used to filter the list.

返回值

Boolean

若要在筛选后的列表中包括成员则为 true;否则为 falsetrue to include the member in the filtered list; otherwise false.

继承
MemberFilter
属性

注解

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)

获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate.

适用于

另请参阅