This documentation is archived and is not being maintained.

VCCodeClass Interface 

An object providing access to any class element collected in a VCCodeModel object.

Namespace: Microsoft.VisualStudio.VCCodeModel
Assembly: Microsoft.VisualStudio.VCCodeModel (in microsoft.visualstudio.vccodemodel.dll)

[GuidAttribute("17730D46-271F-11D7-8BF6-00B0D03DAA06")] 
public interface VCCodeClass
/** @attribute GuidAttribute("17730D46-271F-11D7-8BF6-00B0D03DAA06") */ 
public interface VCCodeClass
GuidAttribute("17730D46-271F-11D7-8BF6-00B0D03DAA06") 
public interface VCCodeClass

The VCCodeClass object provides code model functionality to existing Visual C++ IDE solutions at the class level. Primarily, this object is used to modify any class element accessible within a project.

NoteNote

A large part of the functionality of this object is provided by the Visual Studio CodeClass object. For more information, see CodeClass object.

See Samples for Code Model Extensibility for information on how to compile and run this sample.

Sub GetClass()
    Dim vcCM as VCCodeModel
    Dim vcClass as VCCodeClass
    vcCM = DTE.Solution.Item(1).CodeModel
    vcClass = vcCM.Classes.Find("CAboutDlg")
End Sub
Show: