Compartilhar via


IVsFindCancelDialog.LaunchDialog Method

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

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

Syntax

'Declaração
Function LaunchDialog As Integer
int LaunchDialog()
int LaunchDialog()
abstract LaunchDialog : unit -> int 
function LaunchDialog() : int

Return Value

Type: System.Int32
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.

.NET Framework Security

See Also

Reference

IVsFindCancelDialog Interface

Microsoft.VisualStudio.TextManager.Interop Namespace