Export (0) Print
Expand All

Visual C++ Code Model

With this model, you can manipulate internal elements, such as a defined class or function, within a Visual C++ project.

The following objects are defined in the Visual C++ Code Model.

Object Description
CodeModelEvents Object An object providing access to various events fired by the Visual C++ Code Model.
MFCDialogNumberVariableExtender Object An object providing access to the minimum and maximum range of a numeric-type variable in an MFC dialog box.
MFCDialogStringVariableExtender Object An object providing access to the maximum character range of a string-type variable in an MFC dialog box.
MFCDialogVariableExtender Object An object providing access to a variable code element in an existing MFC dialog box.
VCCodeAttribute Object An object providing access to the attribute of an item.
VCCodeBase Object An object providing access to the base class list of the parent object.
VCCodeClass Object An object providing access to any class element collected in a VCCodeModel object.
VCCodeDelegate Object An object representing a delegate code element (declared with the __delegate keyword).
VCCodeElement Object An object providing access to any code element within a source file.
VCCodeElements Collection A collection of objects (representing individual code elements) within one or more source files.
VCCodeEnum Object An object representing an enumeration code element in the source code of a solution.
VCCodeEvent Object An object representing an event code element (declared with the __event keyword).
VCCodeFunction Object An object defining a function construct in a source file.
VCCodeIDLCoClass Object An object defining a coclass element in a .idl file.
VCCodeIDLImport Object An object defining an import element in an .idl file.
VCCodeIDLImportLib Object An object defining an importlib element in an .idl file.
VCCodeIDLLibrary Object An object defining a library element in an .idl file.
VCCodeImport Object An object representing a #import code element in the source code of a solution.
VCCodeInclude Object An object representing a #include code element in the source code of a solution.
VCCodeInterface Object An object representing either a standard .idl interface, a dispinterface code element, or a code element (modified by the __interface keyword) in the source code of a solution.
VCCodeMacro Object An object representing a macro (#define statement) code element in the source code of a solution.
VCCodeMap Object An object representing a map code element in the source code of a solution.
VCCodeMapEntry Object An object defining a map entry construct in a source file.
VCCodeModel Object An object providing project level access to any contained code element.
VCCodeNamespace Object An object representing a namespace element in the source code of a solution.
VCCodeParameter Object An object representing a parameter of a function, property, and so on, in a source file.
VCCodeProperty Object An object representing a property code element (declared with the __property keyword).
VCCodeStruct Object An object representing a structure code element in the source code of a solution.
VCCodeTypedef Object An object representing a typedef code element in the source code of a solution.
VCCodeUnion Object An object representing a union code element in the source code of a solution.
VCCodeUsing Object An object representing a #using code element in the source code of a solution.
VCCodeVariable Object An object representing a variable construct in a source file.
VCDialogExtender Object An object providing access to an existing dialog box class in a solution.
VCFileCodeModel Object An object representing the code elements in a source file.
VCLanguageManager Object An object used to validate various code elements of a C++ source file.

Some of the properties and methods associated with these objects are defined as part of the larger Visual Studio model. However, even when the objects are similar to Visual Studio objects, there are additional properties or methods associated with them in Visual C++. For instance, while a function object will have parameters associated with it in all the Visual Studio languages, in Visual C++ the function can have additional properties unique to the C++ language, such as being virtual, a constant, or part of an IDL file. These unique properties are exposed by the VCCodeFunction object. This is done so that you can work with properties unique to C++ from scripts within Visual C++.

See Also

Visual C++ Code Model Enumerations | Visual C++ Extensibility Object Model

Show:
© 2014 Microsoft