IVsFindCancelDialog.CloseDialog Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Dismisses a modeless background dialog opened with LaunchDialog().
public:
int CloseDialog();
public:
int CloseDialog();
int CloseDialog();
public int CloseDialog ();
abstract member CloseDialog : unit -> int
Public Function CloseDialog () As Integer
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
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.