IVsFindCancelDialog.QueryDialog Method
Determines whether the user of the modeless dialog on the background thread has cancelled a 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 QueryDialog ( _
<OutAttribute> ByRef pfCancel As Integer _
) As Integer
int QueryDialog(
out int pfCancel
)
int QueryDialog(
[OutAttribute] int% pfCancel
)
abstract QueryDialog :
pfCancel:int byref -> int
function QueryDialog(
pfCancel : int
) : int
Parameters
- pfCancel
Type: System.Int32%
[out] True if the user has clicked cancel, otherwise false.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
Call this method to query the state of the modeless dialog opened on the background thread with a call to LaunchDialog.
The environment's implementation of the QueryDialog method allocates time to the background dialog and queries it to see if the user has canceled the find operation.
The environment's implementation of the IVsFindCancelDialog interface is thread-aware, so you may use the QueryDialog method without regard to whether your calling process is on the foreground or background thread.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.