Share via


Solution Members

Include Protected Members
Include Inherited Members

Represents all projects and solution-wide properties in the integrated development environment (IDE). Use this object for functionality and refer to _Solution for documentation.

The Solution type exposes the following members.

Methods

 

Name

Description

Public method

AddFromFile

Adds a project to the solution, based on a project file already stored in the system. (Inherited from _Solution.)

Public method

AddFromTemplate

Copies an existing project file, and any items or subdirectories it contains, to the specified location and adds it to the solution. (Inherited from _Solution.)

Public method

Close

Closes the current solution. (Inherited from _Solution.)

Public method

Create

Creates an empty solution in the specified directory with the specified name. (Inherited from _Solution.)

Public method

FindProjectItem

Locates an item in a project. (Inherited from _Solution.)

Public method

GetEnumerator

Returns an enumeration for items in a collection. (Inherited from _Solution.)

Public method

Item

Returns a Project object in a Projects collection. (Inherited from _Solution.)

Public method

Open

Opens the solution in the specified view. (Inherited from _Solution.)

Public method

ProjectItemsTemplatePath

Returns the location of project item templates for the specified project type. (Inherited from _Solution.)

Public method

Remove

Removes the specified project from the solution. (Inherited from _Solution.)

Public method

SaveAs

Saves the solution. (Inherited from _Solution.)

Top

Properties

 

Name

Description

Public property

AddIns

Gets an AddIns collection, which contains all currently available add-ins associated with the solution. (Inherited from _Solution.)

Public property

Count

Gets a value indicating the number of objects in the collection. (Inherited from _Solution.)

Public property

DTE

Gets the top-level extensibility object. (Inherited from _Solution.)

Public property

Extender

Gets the requested Extender object if it is available for this object. (Inherited from _Solution.)

Public property

ExtenderCATID

Gets the Extender category ID (CATID) for the object. (Inherited from _Solution.)

Public property

ExtenderNames

Gets a list of available Extenders for the object. (Inherited from _Solution.)

Public property

FileName

Infrastructure. Microsoft Internal Use Only. (Inherited from _Solution.)

Public property

FullName

Gets the full path and name of the object's file. (Inherited from _Solution.)

Public property

Globals

Gets the Globals that contains add-in values that may be saved in the solution (.sln) file, the project file, or in the user's profile data. (Inherited from _Solution.)

Public property

IsDirty

Infrastructure. Microsoft Internal Use Only. (Inherited from _Solution.)

Public property

IsOpen

Determines if a solution is open. (Inherited from _Solution.)

Public property

Parent

Gets the immediate parent object of a _Solution. (Inherited from _Solution.)

Public property

Projects

Gets a collection of the projects currently in the solution. (Inherited from _Solution.)

Public property

Properties

Gets a collection of all properties that pertain to the _Solution. (Inherited from _Solution.)

Public property

Saved

Returns true if the object has not been modified since last being saved or opened. (Inherited from _Solution.)

Public property

SolutionBuild

Gets the SolutionBuild object for the solution, which represents the root of the build automation model at the solution level. (Inherited from _Solution.)

Public property

TemplatePath

Gets the full path and name of the directory that contains templates for the specified type of project. (Inherited from _Solution.)

Top

See Also

Reference

Solution Interface

EnvDTE Namespace