共用方式為


IVsOpenProjectOrSolutionDlg.OpenProjectOrSolutionViaDlg Method

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

Syntax

'宣告
Function OpenProjectOrSolutionViaDlg ( _
    grfProjSlnDlgFlags As UInteger, _
    pwzStartDirectory As String, _
    pwzDialogTitle As String, _
    ByRef rguidProjectType As Guid _
) As Integer
'用途
Dim instance As IVsOpenProjectOrSolutionDlg
Dim grfProjSlnDlgFlags As UInteger
Dim pwzStartDirectory As String
Dim pwzDialogTitle As String
Dim rguidProjectType As Guid
Dim returnValue As Integer

returnValue = instance.OpenProjectOrSolutionViaDlg(grfProjSlnDlgFlags, _
    pwzStartDirectory, pwzDialogTitle, _
    rguidProjectType)
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

  • pwzDialogTitle
    Type: System.String
    [in] Dialog box title. Leave nulla null reference (Nothing in Visual Basic) for default title.

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 IVsOpenProjectOrSolutionDlg::OpenProjectOrSolutionViaDlg(
   [in] VSPROJSLNDLGFLAGS grfProjSlnDlgFlags, 
   [in] LPCOLESTR pwzStartDirectory, 
   [in] LPCOLESTR pwzDialogTitle, 
   [in] REFGUID rguidProjectType
);

.NET Framework Security

See Also

Reference

IVsOpenProjectOrSolutionDlg Interface

IVsOpenProjectOrSolutionDlg Members

Microsoft.VisualStudio.Shell.Interop Namespace