NDepend.API Documentation
ShowDialogChooseAnExistingProject Method
NDepend.Project Namespace > IProjectManager Interface : ShowDialogChooseAnExistingProject Method
The window handle of the parent window that shows the dialog.
The project choosen.
Shows a dialog that allows the user select an existing NDepend project.
Syntax
bool ShowDialogChooseAnExistingProject( 
   IntPtr ownerWindowHandle,
   out IProject project
)

Parameters

ownerWindowHandle
The window handle of the parent window that shows the dialog.
project
The project choosen.

Return Value

true if the user clicked OK, false if the user clicked Cancel
Exceptions
ExceptionDescription
This operation needs the current thread to be a STA thread. To do so, just tag your Main() method with the [STAThread] attribute.
Remarks
This method can only be invoked within a .NET Framework 4.x and Windows OS context else it throws a NotSupportedException.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

IProjectManager Interface
IProjectManager Members
ShowDialogSelectAssemblies(IntPtr,ICollection<IAbsoluteFilePath>) Method
ShowDialogSelectAssemblies(IntPtr,ICollection<IAbsoluteFilePath>,ICollection<IAbsoluteFilePath>) Method
ShowDialogSelectVisualStudioSolutionsOrProjects Method
ShowDialogBuildComparison Method