Clones a template project file and adds it as a sub-project to the hierarchy for the supplied file, destination directory, and project name, using the supplied project element and creation flags.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Protected Friend Overridable Function AddNestedProjectFromTemplate ( _
fileName As String, _
destination As String, _
projectName As String, _
element As ProjectElement, _
creationFlags As __VSCREATEPROJFLAGS _
) As NestedProjectNode
'使用
Dim fileName As String
Dim destination As String
Dim projectName As String
Dim element As ProjectElement
Dim creationFlags As __VSCREATEPROJFLAGS
Dim returnValue As NestedProjectNode
returnValue = Me.AddNestedProjectFromTemplate(fileName, _
destination, projectName, element, _
creationFlags)
protected internal virtual NestedProjectNode AddNestedProjectFromTemplate(
string fileName,
string destination,
string projectName,
ProjectElement element,
__VSCREATEPROJFLAGS creationFlags
)
protected public:
virtual NestedProjectNode^ AddNestedProjectFromTemplate(
String^ fileName,
String^ destination,
String^ projectName,
ProjectElement^ element,
__VSCREATEPROJFLAGS creationFlags
)
protected internal function AddNestedProjectFromTemplate(
fileName : String,
destination : String,
projectName : String,
element : ProjectElement,
creationFlags : __VSCREATEPROJFLAGS
) : NestedProjectNode
Parameters
fileName
Type: System.StringThe name of the project file.
destination
Type: System.StringThe destination directory.
projectName
Type: System.StringThe name of the project.
element
Type: Microsoft.VisualStudio.Package.ProjectElementThe project element.
creationFlags
Type: Microsoft.VisualStudio.Shell.Interop.__VSCREATEPROJFLAGS__VSCREATEPROJFLAGS describing the action(s) to be taken.
Return Value
Type: Microsoft.VisualStudio.Package.NestedProjectNode
The new NestedProjectNode.
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.