Export (0) Print
Expand All

Solution3 Methods

The Solution3 type exposes the following members.

  Name Description
Public method AddFromFile Adds a project to the solution that is based on a project file already stored in the system.
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.
Public method AddSolutionFolder Adds a solution folder to a ProjectItems collection.
Public method Close Closes the current solution.
Public method Create Creates an empty solution in the specified directory with the specified name.
Public method FindProjectItem Locates an item in a project.
Public method GetEnumerator Returns an enumeration for items in a collection.
Public method GetProjectItemTemplate Returns a path to the indicated project item template.
Public method GetProjectItemTemplates Returns a collection of project item templates for the specified project.
Public method GetProjectTemplate Returns a path to the specified project template.If a template has a RequiredFrameworkVersion element higher than 4.0, you should provide the version in the call so that the search for the template will find a match. For example, instead of calling GetProjectTemplate("Extensibility\\1033\\VSIXProject.zip", "CSharp"); call GetProjectTemplate("Extensibility\\1033\\VSIXProject.zip|FrameworkVersion=4.5", "CSharp");.
Public method Item Returns an indexed member of a Projects collection.
Public method Open Opens a specified solution.
Public method ProjectItemsTemplatePath Superseded by GetProjectItemTemplate.
Public method Remove Removes the specified project from the solution.
Public method SaveAs Saves the solution.
© 2014 Microsoft