Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

VCProject Object Properties, Methods, and Events

Visual Studio .NET 2003

Properties

Configurations Property Returns the collection of configurations on the project.
Files Property Returns the collection of files in the project.
Filters Property Returns the collection of top-level filters (folders) in the project.
ItemName Property Returns the name of the current item in the collection.
Items Property Returns the collection of files and top-level folders in a project.
Keyword Property Returns the collection of Dynamic Help keywords associated with a project.
Kind Property Returns a string indicating the kind or type of the object. For projects, this would be VCProject.
Name Property Returns the name of the project.
Object Property Provides a reference between the Visual Studio object model and the Visual C++ object model.
Project Property Pointer to the project this configuration or file is associated with. Not really applicable to a project; will just return a pointer back to the project.
Parent Property Returns the immediate parent object of a given object. (Not really applicable to a project.)
Platforms Property Returns the platforms for which this project can be built. For Visual C++, this will only be Win32.
ProjectDirectory Returns the name of the directory that contains the project file.
ProjectFile Property Returns the name of the project file.
References Property Returns the collection of references for the selected project.
ReferencesConsumableByDesigners Property Returns the collection of references that are consumable by designers in the active solution configuration.
RootNamespace Property Sets or returns the root namespace for the specified project. Used to determine proper naming for managed resource DLLs.
VCProjectEngine Property Returns a pointer to the project engine.
VCReferences Property Returns the collection of references for the selected project.

Methods

AddActiveXReference Method Adds an ActiveX reference to the project.
AddAssemblyReference Method Adds an assembly reference to the selected project.
AddConfiguration Method Adds a configuration to the current project.
AddFile Method Adds a file to the current project.
AddFilter Method Adds a folder to the current project.
AddPlatform Method (VCProject) Adds a platform to the current project (not enabled for Visual C++).
AddProjectReference Method Adds a project reference to the project.
AddWebReference Method Adds a Web reference to a project.
CanAddActiveXReference Method Returns whether it is acceptable to add the given ActiveX reference.
CanAddAssemblyReference Method Returns whether it is acceptable to add the given assembly reference.
CanAddFile Method Returns true if the specified file can be added to the current project.
CanAddFilter Method Returns true if the specified filter can be added as a top level filter to the current project.
CanAddProjectReference Method Returns whether it is okay to add the given project reference.
MatchName Method Matches a specified name to the name of a collection item.
RemoveConfiguration Method Removes a configuration from the current project.
RemoveFile Method Removes a file from the current project.
RemoveFilter Method Removes a folder from the current project and any files or other folders in the folder.
RemovePlatform Method Removes a platform from the current project (not enabled for Visual C++).
RemoveReference Method Removes the specified reference from the project.
Save Method Saves the project file (.vcproj).
Version Method (VCProject Object) Sets or returns the major and minor version numbers of the project.

See Also

VCProject Object

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.