共用方式為


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

See Also

Reference

CommonMessagePump Class

Microsoft.VisualStudio.Shell Namespace