مشاركة عبر


VCCodeStruct Interface

An object representing a structure code element in the source code of a solution.

Namespace:  Microsoft.VisualStudio.VCCodeModel
Assembly:  Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)

Syntax

'إقرار
<GuidAttribute("B3B2B528-ECD5-4DD0-808F-07EB265A1FD8")> _
Public Interface VCCodeStruct
'الاستخدام
Dim instance As VCCodeStruct
[GuidAttribute("B3B2B528-ECD5-4DD0-808F-07EB265A1FD8")]
public interface VCCodeStruct
[GuidAttribute(L"B3B2B528-ECD5-4DD0-808F-07EB265A1FD8")]
public interface class VCCodeStruct
[<GuidAttribute("B3B2B528-ECD5-4DD0-808F-07EB265A1FD8")>]
type VCCodeStruct =  interface end
public interface VCCodeStruct

Remarks

The VCCodeStruct object is used to modify an existing function construct.

ملاحظة

A large part of the functionality of this object is provided by the Visual Studio CodeStruct object. For more information, see CodeStruct 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 all structure code elements of the current solution and displays each name in a message box.

Sub GetAllStructs()
    Dim vcCM As VCCodeModel
    Dim vcStruct As VCCodeStruct
    vcCM = DTE.Solution.Item(1).CodeModel
    For Each vcStruct in vcCM.Structs
        MsgBox(vcStruct.DisplayName)
    Next
End Sub

See Also

Reference

VCCodeStruct Members

Microsoft.VisualStudio.VCCodeModel Namespace