Freigeben über


IVsOpenProjectOrSolutionDlg.OpenProjectOrSolutionViaDlg Method

Opens a Solution or Project using the standard open dialog boxes.

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

Syntax

'Declaration
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
)
int OpenProjectOrSolutionViaDlg(
    [InAttribute] unsigned int grfProjSlnDlgFlags, 
    [InAttribute] String^ pwzStartDirectory, 
    [InAttribute] String^ pwzDialogTitle, 
    [InAttribute] Guid% rguidProjectType
)
abstract OpenProjectOrSolutionViaDlg : 
        grfProjSlnDlgFlags:uint32 * 
        pwzStartDirectory:string * 
        pwzDialogTitle:string * 
        rguidProjectType:Guid byref -> int
function OpenProjectOrSolutionViaDlg(
    grfProjSlnDlgFlags : uint, 
    pwzStartDirectory : String, 
    pwzDialogTitle : String, 
    rguidProjectType : Guid
) : int

Parameters

  • grfProjSlnDlgFlags
    Type: UInt32

    [in] The options for the dialog box.

  • pwzStartDirectory
    Type: String

    [in] Start directory.

  • pwzDialogTitle
    Type: String

    [in] Dialog box title. Leave nulla null reference (Nothing in Visual Basic) for default title.

Return Value

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

Remarks

COM Signature

From vsshell80.idl:

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

.NET Framework Security

See Also

Reference

IVsOpenProjectOrSolutionDlg Interface

Microsoft.VisualStudio.Shell.Interop Namespace