VCCodeIDLCoClass Interface
An object defining a CoClass element in a .idl file.
Namespace: Microsoft.VisualStudio.VCCodeModel
Assembly: Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)
Syntax
'إقرار
<GuidAttribute("CB6BF98D-A9A5-4795-B9AD-4BB310528001")> _
Public Interface VCCodeIDLCoClass
'الاستخدام
Dim instance As VCCodeIDLCoClass
[GuidAttribute("CB6BF98D-A9A5-4795-B9AD-4BB310528001")]
public interface VCCodeIDLCoClass
[GuidAttribute(L"CB6BF98D-A9A5-4795-B9AD-4BB310528001")]
public interface class VCCodeIDLCoClass
[<GuidAttribute("CB6BF98D-A9A5-4795-B9AD-4BB310528001")>]
type VCCodeIDLCoClass = interface end
public interface VCCodeIDLCoClass
Remarks
The VCCodeIDLCoClass object represents a CoClass code element from the .idl file of the parent solution. Primarily, this object is used to access the elements of an existing CoClass code element.
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 CoClass code statement and displays it in a message box.
Sub GetFirstCoClass()
Dim vcCM As VCCodeModel
Dim vcIDLCoClass As VCCodeIDLCoClass
vcCM = DTE.Solution.Item(1).CodeModel
vcIDLCoClass = vcCM.IDLLibraries.Item(1).IDLCoClasses.Item(1)
MsgBox(vcIDLCoClass.DisplayName)
End Sub