IVsSolution3.CreateNewProjectViaDlgEx Method

Opens the New Project dialog and expands specified nodes.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'宣言
Function CreateNewProjectViaDlgEx ( _
    pszDlgTitle As String, _
    pszTemplateDir As String, _
    pszExpand As String, _
    pszSelect As String, _
    pszHelpTopic As String, _
    cnpvdeFlags As UInteger, _
    pBrowse As IVsBrowseProjectLocation _
) As Integer
'使用
Dim instance As IVsSolution3
Dim pszDlgTitle As String
Dim pszTemplateDir As String
Dim pszExpand As String
Dim pszSelect As String
Dim pszHelpTopic As String
Dim cnpvdeFlags As UInteger
Dim pBrowse As IVsBrowseProjectLocation
Dim returnValue As Integer

returnValue = instance.CreateNewProjectViaDlgEx(pszDlgTitle, _
    pszTemplateDir, pszExpand, pszSelect, _
    pszHelpTopic, cnpvdeFlags, pBrowse)
int CreateNewProjectViaDlgEx(
    string pszDlgTitle,
    string pszTemplateDir,
    string pszExpand,
    string pszSelect,
    string pszHelpTopic,
    uint cnpvdeFlags,
    IVsBrowseProjectLocation pBrowse
)
int CreateNewProjectViaDlgEx(
    [InAttribute] String^ pszDlgTitle, 
    [InAttribute] String^ pszTemplateDir, 
    [InAttribute] String^ pszExpand, 
    [InAttribute] String^ pszSelect, 
    [InAttribute] String^ pszHelpTopic, 
    [InAttribute] unsigned int cnpvdeFlags, 
    [InAttribute] IVsBrowseProjectLocation^ pBrowse
)
function CreateNewProjectViaDlgEx(
    pszDlgTitle : String, 
    pszTemplateDir : String, 
    pszExpand : String, 
    pszSelect : String, 
    pszHelpTopic : String, 
    cnpvdeFlags : uint, 
    pBrowse : IVsBrowseProjectLocation
) : int

Parameters

  • pszTemplateDir
    Type: System.String

    [in] Location of the template folder.

Return Value

Type: System.Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsSolution3::CreateNewProjectViaDlgEx(
   [in] LPCOLESTR pszDlgTitle, 
   [in] LPCOLESTR pszTemplateDir, 
   [in] LPCOLESTR pszExpand, 
   [in] LPCOLESTR pszSelect, 
   [in] LPCOLESTR pszHelpTopic, 
   [in] VSCREATENEWPROJVIADLGEXFLAGS cnpvdeFlags, 
   [in] IVsBrowseProjectLocation *pBrowse
);

Permissions

See Also

Reference

IVsSolution3 Interface

IVsSolution3 Members

Microsoft.VisualStudio.Shell.Interop Namespace