Share via


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.OLE.Interop
Assembly:  Microsoft.VisualStudio.OLE.Interop (in Microsoft.VisualStudio.OLE.Interop.dll)

Syntax

'Declaration
Function FQueryTerminate ( _
    fPromptUser As Integer _
) As Integer
int FQueryTerminate(
    int fPromptUser
)
int FQueryTerminate(
    [InAttribute] int fPromptUser
)
abstract FQueryTerminate : 
        fPromptUser:int -> int
function FQueryTerminate(
    fPromptUser : int
) : int

Parameters

  • fPromptUser
    Type: System.Int32

    true if the user should be prompted, otherwise false.

Return Value

Type: System.Int32
If fPromptUser is false, the componentshould 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.

.NET Framework Security

See Also

Reference

IOleComponent Interface

Microsoft.VisualStudio.OLE.Interop Namespace