CodeMemberMethod.ImplementationTypes Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the data types of the interfaces implemented by this method, unless it is a private method implementation, which is indicated by the PrivateImplementationType property.

Namespace:   System.CodeDom
Assembly:  System (in System.dll)

public CodeTypeReferenceCollection ImplementationTypes { get; }

Property Value

Type: System.CodeDom.CodeTypeReferenceCollection

A CodeTypeReferenceCollection that indicates the interfaces implemented by this method.

The types referenced by this collection must consist of interfaces.

If this CodeMemberMethod represents a declaration for a public method, and this method implements a method on an interface, the interface or interfaces this method implements a method of should be referenced in this collection.

The method should still have the same name as the method of the interface that is implemented by this method. For some languages, like C#, this has no effect on the syntax. For others, like Visual Basic, there is a special syntax for implementing interfaces. If the method is privately implementing a single interface, the PrivateImplementationType property should be used instead.

.NET Framework
Available since 1.1
Return to top