Rediger

Del via


MemberFilter Delegate

Definition

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);
public delegate bool MemberFilter(MemberInfo m, object? filterCriteria);
public delegate bool MemberFilter(MemberInfo m, object filterCriteria);
[System.Serializable]
public delegate bool MemberFilter(MemberInfo m, object filterCriteria);
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public delegate bool MemberFilter(MemberInfo m, object filterCriteria);
type MemberFilter = delegate of MemberInfo * obj -> bool
[<System.Serializable>]
type MemberFilter = delegate of MemberInfo * obj -> bool
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type MemberFilter = delegate of MemberInfo * obj -> bool
Public Delegate Function MemberFilter(m As MemberInfo, filterCriteria As Object) As Boolean 

Parameters

m
MemberInfo

The MemberInfo object to which the filter is applied.

filterCriteria
Object

An arbitrary object used to filter the list.

Return Value

true to include the member in the filtered list; otherwise false.

Attributes

Remarks

Every derived class of a Delegate and MulticastDelegate has a constructor and an Invoke method. (See the code example in Delegate.)

The FindMembers method uses this delegate to filter the list of members that it returns.

Extension Methods

GetMethodInfo(Delegate)

Gets an object that represents the method represented by the specified delegate.

Applies to

See also