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.StringThe absolute path of the project file.
Return Value
Type: Project
The newly-created Project.
Implements
SolutionFolder.AddFromFile(String)
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.