Adds a subproject using the specified template in the specified location.
Namespace: Microsoft.VisualStudio.Package.Automation
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Overridable Function AddFromTemplate ( _
fileName As String, _
destination As String, _
projectName As String _
) As Project
'使用
Dim instance As OASolutionFolder
Dim fileName As String
Dim destination As String
Dim projectName As String
Dim returnValue As Project
returnValue = instance.AddFromTemplate(fileName, _
destination, projectName)
public virtual Project AddFromTemplate(
string fileName,
string destination,
string projectName
)
public:
virtual Project^ AddFromTemplate(
String^ fileName,
String^ destination,
String^ projectName
)
public function AddFromTemplate(
fileName : String,
destination : String,
projectName : String
) : Project
Parameters
fileName
Type: System.StringThe name of the template file.
destination
Type: System.StringThe path of the project.
projectName
Type: System.StringThe name of the project.
Return Value
Type: Project
The newly-created Project.
Implements
SolutionFolder.AddFromTemplate(String, String, 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.