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.GetInterface (String)

Searches for the interface with the specified name.

[Visual Basic]
Overloads Public Function GetInterface( _
   ByVal name As String _
) As Type
[C#]
public Type GetInterface(
   string name
);
[C++]
public: Type* GetInterface(
   String* name
);
[JScript]
public function GetInterface(
   name : String
) : Type;

Parameters

name
The String containing the name of the interface to get.

Return Value

A Type object representing the interface with the specified name, implemented or inherited by the current Type, if found; otherwise, a null reference (in Visual Basic Nothing).

Exceptions

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

Remarks

The search for name is case-sensitive.

See Also

Type Class | Type Members | System Namespace | Type.GetInterface Overload List