Adds an interface that this type implements.
[Visual Basic] Public Sub AddInterfaceImplementation( _ ByVal interfaceType As Type _ ) [C#] public void AddInterfaceImplementation( Type interfaceType ); [C++] public: void AddInterfaceImplementation( Type* interfaceType ); [JScript] public function AddInterfaceImplementation( interfaceType : Type );
Exception Type | Condition |
---|---|
ArgumentNullException | if interfaceType is a null reference (in Visual Basic Nothing) |
InvalidOperationException | if the type was previously created using CreateType |
TypeBuilder Class | TypeBuilder Members | System.Reflection.Emit Namespace