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;
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).
Exception Type | Condition |
---|---|
ArgumentNullException | name is a null reference (Nothing). |
TargetInvocationException | A static initializer is invoked and throws an exception. |
The search for name is case-sensitive.
Type Class | Type Members | System Namespace | Type.GetInterface Overload List