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
- grfProjSlnDlgFlags
Type: System.UInt32
[in]
- pwzStartDirectory
Type: System.String
[in] Start directory.
- pwzDialogTitle
Type: System.String
[in] Dialog box title. Leave nulla null reference (Nothing in Visual Basic) for default title.
- rguidProjectType
Type: System.Guid%
[in] Specifies the project type to use with PSDF_DirectoryPicker.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsOpenProjectOrSolutionDlg Interface