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!

Type.FindInterfaces

Returns an array of Type objects representing a filtered list of interfaces implemented or inherited by the current Type.

[Visual Basic]
Overridable Public Function FindInterfaces( _
   ByVal filter As TypeFilter, _
   ByVal filterCriteria As Object _
) As Type ()
[C#]
public virtual Type[] FindInterfaces(
   TypeFilter filter,
   object filterCriteria
);
[C++]
public: virtual Type* FindInterfaces(
   TypeFilter* filter,
   Object* filterCriteria
) [];
[JScript]
public function FindInterfaces(
   filter : TypeFilter,
   filterCriteria : Object
) : Type[];

Parameters

filter
The TypeFilter delegate that compares the interfaces against filterCriteria.
filterCriteria
The search criteria that determines whether an interface should be included in the returned array.

Return Value

An array of Type objects representing a filtered list of the interfaces implemented or inherited by the current Type.

-or-

An empty array of type Type, if no interfaces matching the filter are implemented or inherited by the current Type.

Exceptions

Exception Type Condition
ArgumentNullException filter is a null reference (in Visual Basic Nothing).
TargetInvocationException A static initializer is invoked and throws an exception.

Remarks

This method can be overridden by a derived class.

The FilterTypeName and FilterTypeNameIgnoreCase delegates supplied by the Module class may also be used, in lieu of the TypeFilter delegate.

All of the interfaces implemented by this class are considered during the search, whether declared by a super class or this class itself.

This method will search the super class hierarchy, returning all matching interfaces each class implements as well as all the matching interfaces each of those interfaces implements (that is, the transitive closure of the matching interfaces is returned). No duplicate interfaces are returned.

See Also

Type Class | Type Members | System Namespace