CommonMessagePump.IOleComponent2Private.FQueryTerminate Method
Called when the component manager wishes to know whether the component is in a state in which it can terminate.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'宣言
Private Function FQueryTerminate ( _
fPromptUser As Integer _
) As Integer Implements IOleComponent2Private.FQueryTerminate
int IOleComponent2Private.FQueryTerminate(
int fPromptUser
)
Parameters
- fPromptUser
Type: System.Int32
true if the component should prompt the user if it needs to terminate, false if it should not prompt the user.
Return Value
Type: System.Int32
Always returns 1.
Implements
IOleComponent2Private.FQueryTerminate(Int32)
.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.