Filters the classes represented in an array of Type objects.
[Visual Basic] <Serializable> Public Delegate Function Sub TypeFilter( _ ByVal m As Type, _ ByVal filterCriteria As Object _ ) As Boolean [C#] [Serializable] public delegate bool TypeFilter( Type m, object filterCriteria ); [C++] [Serializable] public __gc __delegate bool TypeFilter( Type* m, Object* filterCriteria );
[JScript] In JScript, you can use the delegates in the .NET Framework, but you cannot define your own.
Parameters [Visual Basic, C#, C++]
The declaration of your callback method must have the same parameters as the TypeFilter delegate declaration.
- The Type object to which the filter is applied.
- An arbitrary object used to filter the list.
true to include the Type in the filtered list; otherwise false.
The TypeFilter delegate is used to filter a list of classes. Specifically, you use it to filter the classes represented in an array of Type objects. The Type.FindInterfaces method uses this delegate to filter the list of interfaces that it returns. Every derived class of Delegate and MulticastDelegate has a constructor and a DynamicInvoke method. See the Managed Extensions for C++ code example given in the description for Delegate.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: Mscorlib (in Mscorlib.dll)