OASolutionFolder<T>.AddFromFile Method

Adds a new subproject of this solution from the specified file.

Namespace:  Microsoft.VisualStudio.Package.Automation
Assembly:  MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)

Syntax

'宣言
Public Overridable Function AddFromFile ( _
    fileName As String _
) As Project
'使用
Dim instance As OASolutionFolder
Dim fileName As String
Dim returnValue As Project

returnValue = instance.AddFromFile(fileName)
public virtual Project AddFromFile(
    string fileName
)
public:
virtual Project^ AddFromFile(
    String^ fileName
)
public function AddFromFile(
    fileName : String
) : Project

Parameters

  • fileName
    Type: System.String

    The absolute path of the project file.

Return Value

Type: Project

The newly-created Project.

Implements

SolutionFolder.AddFromFile(String)

Permissions

See Also

Reference

OASolutionFolder<T> Class

OASolutionFolder<T> Members

Microsoft.VisualStudio.Package.Automation Namespace