MemberFilter Delegate
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om