This documentation is archived and is not being maintained.

VCCodeClass Object

Visual Studio .NET 2003

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

[Visual Basic .NET]
Public Interface VCCodeClass
   Inherits IDispatch
[Visual Basic 6]
Class VCCodeClass
interface VCCodeClass : IDispatch
public interface VCCodeClass : IDispatch
[JScript .NET]
public interface VCCodeClass extends IDispatch


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.

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


Namespace: Microsoft.VisualStudio.VCCodeModel

File: vcpkg.dll


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

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

See Also

VCCodeClass Object Properties, Methods, and Events | Visual C++ Extensibility Object Model