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
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για