IVsOpenProjectOrSolutionDlg.OpenProjectOrSolutionViaDlg 方法

命名空间:  Microsoft.VisualStudio.Shell.Interop
程序集:  Microsoft.VisualStudio.Shell.Interop.8.0(在 Microsoft.VisualStudio.Shell.Interop.8.0.dll 中)

语法

声明
Function OpenProjectOrSolutionViaDlg ( _
    grfProjSlnDlgFlags As UInteger, _
    pwzStartDirectory As String, _
    pwzDialogTitle As String, _
    ByRef rguidProjectType As Guid _
) As Integer
int OpenProjectOrSolutionViaDlg(
    uint grfProjSlnDlgFlags,
    string pwzStartDirectory,
    string pwzDialogTitle,
    ref Guid rguidProjectType
)

参数

  • pwzDialogTitle
    类型:System.String
    [in] 对话框标题。保留默认标题的 nullnull 引用(在 Visual Basic 中为 Nothing) 。

返回值

类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 vsshell80.idl:

HRESULT IVsOpenProjectOrSolutionDlg::OpenProjectOrSolutionViaDlg(
   [in] VSPROJSLNDLGFLAGS grfProjSlnDlgFlags, 
   [in] LPCOLESTR pwzStartDirectory, 
   [in] LPCOLESTR pwzDialogTitle, 
   [in] REFGUID rguidProjectType
);

.NET Framework 安全性

请参见

参考

IVsOpenProjectOrSolutionDlg 接口

Microsoft.VisualStudio.Shell.Interop 命名空间