OpenProjectOrSolutionViaDlg Method
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

IVsOpenProjectOrSolutionDlg.OpenProjectOrSolutionViaDlg Method

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in microsoft.visualstudio.shell.interop.8.0.dll)

int OpenProjectOrSolutionViaDlg (
	[InAttribute] uint grfProjSlnDlgFlags,
	[InAttribute] string pwzStartDirectory,
	[InAttribute] string pwzDialogTitle,
	[InAttribute] ref Guid rguidProjectType
)
int OpenProjectOrSolutionViaDlg (
	/** @attribute InAttribute() */ UInt32 grfProjSlnDlgFlags, 
	/** @attribute InAttribute() */ String pwzStartDirectory, 
	/** @attribute InAttribute() */ String pwzDialogTitle, 
	/** @attribute InAttribute() */ /** @ref */ Guid rguidProjectType
)
JScript does not support passing value-type arguments by reference.

Parameters

grfProjSlnDlgFlags

[in]

pwzStartDirectory

[in] Start directory.

pwzDialogTitle

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

rguidProjectType

[in] Specifies the project type to use with PSDF_DirectoryPicker.

Return Value

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

COM Signature

From vsshell80.idl:

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