NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

MemberFilter Delegate

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

[Visual Basic]
Public Delegate Sub MemberFilter( _
   ByVal m As MemberInfo, _
   ByVal filterCriteria As Object _
) As Boolean
[C#]
public delegate bool MemberFilter(
   MemberInfo m,
   object filterCriteria
);
[C++]
public __gc __delegate bool MemberFilter(
   MemberInfo* m,
   Object* filterCriteria
);

[JScript] In JScript, you can use the delegates in the NGWS frameworks, but you cannot define your own.

Parameters [Visual Basic, C#, C++]

The declaration of your event-handling method must have the same parameters as the MemberFilter delegate declaration.

m
The MemberInfo object to which the filter is applied.
filterCriteria
An arbitrary object used to filter the list.

Remarks

Every subclass 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.

Requirements

Namespace: System.Reflection

Assembly: mscorlib.dll

See Also

System.Reflection Namespace | Type