Compartilhar via


IVsFindCancelDialog.LaunchDialog Method

Definition

Launches a modeless dialog on the background thread with which the user can cancel a lengthy find or replace operation

public:
 int LaunchDialog();
public:
 int LaunchDialog();
int LaunchDialog();
public int LaunchDialog ();
abstract member LaunchDialog : unit -> int
Public Function LaunchDialog () As Integer

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code. Repeated calls to LaunchDialog() close and re-launch the dialog rather than generating an error.

Remarks

Launches a modeless dialog on the background thread with which the user can cancel a lengthy background find or replace operation.

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

Applies to