Export (0) Print
Expand All

CodeMemberMethod.ImplementationTypes Property

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

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft