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
属性

注解

每个派生的类DelegateMulticastDelegate具有一个构造函数和一个Invoke方法。Every 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.

适用于

另请参阅