IVsFindCancelDialog::CloseDialog Method ()

 

Dismisses a modeless background dialog opened with LaunchDialog.

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

int CloseDialog()

Return Value

Type: System::Int32

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

Closes the background-thread modeless dialog opened by a call to the LaunchDialog method. If the modeless dialog does not exist, CloseDialog does nothing.

The environment's implementation of the IVsFindCancelDialog interface is thread-aware, so you may use the CloseDialog method without regard to whether your calling process is on the foreground or background thread.

Return to top
Show: