다음을 통해 공유


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

‘선언
Function CloseDialog As Integer
‘사용 방법
Dim instance As IVsFindCancelDialog
Dim returnValue As Integer

returnValue = instance.CloseDialog()
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

IVsFindCancelDialog Members

Microsoft.VisualStudio.TextManager.Interop Namespace