共用方式為


ProjectStorage.CreateStorageFromTemplate Method

 

Namespace:   Microsoft.VisualStudio.Tools.Applications
Assembly:  Microsoft.VisualStudio.Tools.Applications (in Microsoft.VisualStudio.Tools.Applications.dll)

Overload List

Name Description
System_CAPS_pubmethodSystem_CAPS_static CreateStorageFromTemplate(Stream, String, String, IDictionary<String, String>)

Creates a new IProjectStorage using the template templateName contained in projectTemplatesStream.

System_CAPS_pubmethodSystem_CAPS_static 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

Return to top

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

Return Value

Type: Microsoft.VisualStudio.Tools.Applications.IProjectStorage

A new IProjectStorage based on the template templateName.

Return to top

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.String

    Path to the vstax file.

  • templateName
    Type: System.String

    The name of the template inside the file projectTemplatesPath from which IProjectStorage will be created.

Return Value

Type: Microsoft.VisualStudio.Tools.Applications.IProjectStorage

Returns IProjectStorage.

Return to top