Introduction to the VSProject2 Object
This documentation is archived and is not being maintained.

Introduction to the VSProject2 Object 

The VSProject2 object provides access to the Visual Basic and Visual C# and Visual J# project structure.

VSProject Properties and Methods

Following are the properties and methods specific to Visual Basic, Visual C# and Visual J#:

The VSProject2 object also has properties to help you work your way back to objects in the general extensibility model. These properties include:

  • The DTE property returns the top-level extensibility object. You have access to the entire Visual Studio extensibility object model through this property.

  • The Project property returns the general extensibility object for the project. This object includes properties, methods, and events that are common to all Visual Studio projects.

The following table provides links to topics that detail how to use the VSProject2 object to create and control Visual Basic, Visual C#, and Visual J# projects.

To: See:

Create Visual C#, Visual Basic, and Visual J# projects, use .zip-files to add project items, use the VSProject2 object to control the project.

How to: Manipulate Visual Basic, C#, and J# Projects with the VSProject2 Object

Create Visual Basic projects and use the Imports property to obtain a handle to the Imports object.

How to: Manipulate the Imports Property of Visual Basic Projects

See Also

Show:
© 2016 Microsoft