VCCodeProperty Interface
An object representing a property code element (declared with the __property keyword).
Namespace: Microsoft.VisualStudio.VCCodeModel
Assembly: Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)
Syntax
'إقرار
<GuidAttribute("E3E6AAF4-5DD0-4401-A9EE-AF435C7543EF")> _
Public Interface VCCodeProperty
'الاستخدام
Dim instance As VCCodeProperty
[GuidAttribute("E3E6AAF4-5DD0-4401-A9EE-AF435C7543EF")]
public interface VCCodeProperty
[GuidAttribute(L"E3E6AAF4-5DD0-4401-A9EE-AF435C7543EF")]
public interface class VCCodeProperty
[<GuidAttribute("E3E6AAF4-5DD0-4401-A9EE-AF435C7543EF")>]
type VCCodeProperty = interface end
public interface VCCodeProperty
Remarks
The VCCodeProperty object represents a property code element in a source file and allows access to information about that specific code element.
ملاحظة
A large part of the functionality of this object is provided by the Visual Studio CodeProperty object. For more information, see CodeProperty 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 properties of the first class and displays their names in a message box.
Sub GetProperties()
Dim vcCM As VCCodeModel
Dim vcClass As VCCodeClass
Dim vcProperty as VCCodeProperty
vcCM = DTE.Solution.Item(1).CodeModel
vcClass = vcCM.Classes.Item(1)
For Each vcProperty in vcClass.Properties
MsgBox(vcProperty.DisplayName)
Next
End Sub