संपादित करें

इसके माध्यम से साझा किया गया


CodeMemberMethod.ImplementationTypes Property

Definition

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.

public:
 property System::CodeDom::CodeTypeReferenceCollection ^ ImplementationTypes { System::CodeDom::CodeTypeReferenceCollection ^ get(); };
public System.CodeDom.CodeTypeReferenceCollection ImplementationTypes { get; }
member this.ImplementationTypes : System.CodeDom.CodeTypeReferenceCollection
Public ReadOnly Property ImplementationTypes As CodeTypeReferenceCollection

Property Value

A CodeTypeReferenceCollection that indicates the interfaces implemented by this method.

Remarks

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.

Applies to