VCCodeUnion Interface
An object representing a union code element in the source code of a solution.
Namespace: Microsoft.VisualStudio.VCCodeModel
Assembly: Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)
Syntax
'إقرار
<GuidAttribute("75CBD919-4E7C-4F15-A6E4-A4EF87A75BD4")> _
Public Interface VCCodeUnion
'الاستخدام
Dim instance As VCCodeUnion
[GuidAttribute("75CBD919-4E7C-4F15-A6E4-A4EF87A75BD4")]
public interface VCCodeUnion
[GuidAttribute(L"75CBD919-4E7C-4F15-A6E4-A4EF87A75BD4")]
public interface class VCCodeUnion
[<GuidAttribute("75CBD919-4E7C-4F15-A6E4-A4EF87A75BD4")>]
type VCCodeUnion = interface end
public interface VCCodeUnion
Remarks
The VCCodeUnion object is used to modify an existing union construct.
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 displays the name of each union code element in the current solution. It assumes a C++ project is open and that it has global unions.
Sub GetAllUnions()
Dim vcCM As VCCodeModel
Dim vcUnion As VCCodeUnions
vcCM = DTE.Solution.Item(1).CodeModel
For Each vcUnion in vcCM.Unions
MsgBox(vcUnion.DisplayName)
Next
End Sub