Partager via


MemberFilter Delegate

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Represents a delegate that is used to filter a list of members represented in an array of MemberInfo objects.

Namespace:  System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
<ComVisibleAttribute(True)> _
Public Delegate Function MemberFilter ( _
    m As MemberInfo, _
    filterCriteria As Object _
) As Boolean
[ComVisibleAttribute(true)]
public delegate bool MemberFilter(
    MemberInfo m,
    Object filterCriteria
)

Parameters

  • filterCriteria
    Type: System.Object
    An arbitrary object used to filter the list.

Return Value

Type: System.Boolean
true to include the member in the filtered list; otherwise false.

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference