VCCodeInterface Interface
An object representing either a standard .idl interface, a dispinterface code element, or a code element (modified by the __interface keyword) in the source code of a solution.
Namespace: Microsoft.VisualStudio.VCCodeModel
Assembly: Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)
Syntax
'إقرار
<GuidAttribute("A572B53D-74FB-4395-89AC-B6E662BF0A64")> _
Public Interface VCCodeInterface
'الاستخدام
Dim instance As VCCodeInterface
[GuidAttribute("A572B53D-74FB-4395-89AC-B6E662BF0A64")]
public interface VCCodeInterface
[GuidAttribute(L"A572B53D-74FB-4395-89AC-B6E662BF0A64")]
public interface class VCCodeInterface
[<GuidAttribute("A572B53D-74FB-4395-89AC-B6E662BF0A64")>]
type VCCodeInterface = interface end
public interface VCCodeInterface
Remarks
The VCCodeInterface object represents an interface code element. Primarily, the object is used to access or modify the elements of an existing interface.
ملاحظة
A large part of the functionality of this object is provided by the Visual Studio CodeInterface object. For more information, see CodeInterface object.
See How to: Compile Example Code for Visual C++ Code Model Extensibility for information on how to compile and run this sample.
Examples
This example retrieves the first VCCodeInterface object of the current solution and displays it in a message box. It assumes a project containing interfaces is open.
[Visual Basic]
Sub GetFirstInterface()
Dim vcCM As VCCodeModel
Dim vcInterface As VCCodeInterface
vcCM = DTE.Solution.Item(1).CodeModel
vcInterface = vcCM.Interfaces.Item(1)
MsgBox(vcInterface.DisplayName)
End Sub