Partager via


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)

Syntax

'Déclaration
Function CloseDialog As Integer
int CloseDialog()
int CloseDialog()
abstract CloseDialog : unit -> int 
function CloseDialog() : int

Return Value

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

.NET Framework Security

See Also

Reference

IVsFindCancelDialog Interface

Microsoft.VisualStudio.TextManager.Interop Namespace