Partager via


SingleTaskIdleManager.IOleComponent.FQueryTerminate Method

Called when the component manager wishes to know if the component is in a state in which it can terminate.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Private Function FQueryTerminate ( _
    fPromptUser As Integer _
) As Integer Implements IOleComponent.FQueryTerminate
int IOleComponent.FQueryTerminate(
    int fPromptUser
)
private:
virtual int FQueryTerminate(
    int fPromptUser
) sealed = IOleComponent::FQueryTerminate
private abstract FQueryTerminate : 
        fPromptUser:int -> int  
private override FQueryTerminate : 
        fPromptUser:int -> int
JScript does not support explicit interface implementations.

Parameters

  • fPromptUser
    Type: Int32

    true if the user should be prompted, otherwise false.

Return Value

Type: Int32
If fPromptUser is false, the component should simply return true if it can terminate, false otherwise. If fPromptUser is true, the component should return true if it can terminate without prompting the user. Otherwise it should prompt the user, either asking the user if it can terminate and returning true or false appropriately, or giving an indication as to why it cannot terminate and returning false.

Implements

IOleComponent.FQueryTerminate(Int32)

.NET Framework Security

See Also

Reference

SingleTaskIdleManager Class

Microsoft.VisualStudio.Shell Namespace