ProjectStorage.CreateStorageFromTemplate Method
Namespace: Microsoft.VisualStudio.Tools.Applications
Assembly: Microsoft.VisualStudio.Tools.Applications (in Microsoft.VisualStudio.Tools.Applications.dll)
Overload List
Name | Description | |
---|---|---|
CreateStorageFromTemplate(Stream, String, String, IDictionary<String, String>) | Creates a new IProjectStorage using the template templateName contained in projectTemplatesStream. |
|
CreateStorageFromTemplate(String, String, String, IDictionary<String, String>) | Creates a new IProjectStorage using the template templateName contained in projectTemplatesPath. |
See Also
ProjectStorage Class
Microsoft.VisualStudio.Tools.Applications Namespace
ProjectStorage.CreateStorageFromTemplate Method (Stream, String, String, IDictionary<String, String>)
Creates a new IProjectStorage using the template templateName contained in projectTemplatesStream.
Syntax
public static IProjectStorage CreateStorageFromTemplate(
Stream projectTemplatesStream,
string templateName,
string projectName,
IDictionary<string, string> customParameters
)
public:
static IProjectStorage^ CreateStorageFromTemplate(
Stream^ projectTemplatesStream,
String^ templateName,
String^ projectName,
IDictionary<String^, String^>^ customParameters
)
static member CreateStorageFromTemplate :
projectTemplatesStream:Stream *
templateName:string *
projectName:string *
customParameters:IDictionary<string, string> -> IProjectStorage
Public Shared Function CreateStorageFromTemplate (
projectTemplatesStream As Stream,
templateName As String,
projectName As String,
customParameters As IDictionary(Of String, String)
) As IProjectStorage
Parameters
projectTemplatesStream
Type: System.IO.StreamStream containing the bytes for a vstax file.
templateName
Type: System.StringThe name of the template inside projectTemplatesStream from which IProjectStorage will be created.
projectName
Type: System.StringThe name for the new project.
customParameters
Type: System.Collections.Generic.IDictionary<String, String>An T:System.Collections.IDictionary(TKey,TValue) of template parameters and their value. Inside the IProjectStorage's project items the value will be substituted in place of the corresponding template parameter.
Return Value
Type: Microsoft.VisualStudio.Tools.Applications.IProjectStorage
A new IProjectStorage based on the template templateName.
ProjectStorage.CreateStorageFromTemplate Method (String, String, String, IDictionary<String, String>)
Creates a new IProjectStorage using the template templateName contained in projectTemplatesPath.
Syntax
public static IProjectStorage CreateStorageFromTemplate(
string projectTemplatesPath,
string templateName,
string projectName,
IDictionary<string, string> customParameters
)
public:
static IProjectStorage^ CreateStorageFromTemplate(
String^ projectTemplatesPath,
String^ templateName,
String^ projectName,
IDictionary<String^, String^>^ customParameters
)
static member CreateStorageFromTemplate :
projectTemplatesPath:string *
templateName:string *
projectName:string *
customParameters:IDictionary<string, string> -> IProjectStorage
Public Shared Function CreateStorageFromTemplate (
projectTemplatesPath As String,
templateName As String,
projectName As String,
customParameters As IDictionary(Of String, String)
) As IProjectStorage
Parameters
projectTemplatesPath
Type: System.StringPath to the vstax file.
templateName
Type: System.StringThe name of the template inside the file projectTemplatesPath from which IProjectStorage will be created.
projectName
Type: System.StringThe name for the new project.
customParameters
Type: System.Collections.Generic.IDictionary<String, String>An T:System.Collections.IDictionary(TKey,TValue) of template parameters and their value. Inside the IProjectStorage's project items the value will be substituted in place of the corresponding template parameter.
Return Value
Type: Microsoft.VisualStudio.Tools.Applications.IProjectStorage
Returns IProjectStorage.