OleComponent.IOleComponent.FQueryTerminate Method

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

Namespace:  Microsoft.VisualStudio.PlatformUI.OleComponentSupport
Assembly:  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

‘선언
Private Function FQueryTerminate ( _
    fPromptUser As Integer _
) As Integer Implements IOleComponent.FQueryTerminate
‘사용 방법
Dim instance As OleComponent
Dim fPromptUser As Integer
Dim returnValue As Integer

returnValue = CType(instance, IOleComponent).FQueryTerminate(fPromptUser)
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: System.Int32
    A value indicating whether user prompting should occur if necessary.

Return Value

Type: System.Int32

Implements

IOleComponent.FQueryTerminate(Int32)

Remarks

If fPromptUser is FALSE (0), component should simply return TRUE (1) if it can terminate, FALSE (0) otherwise. If fPromptUser is TRUE (1), component should return TRUE (1) if it can terminate without prompting the user; otherwise it should prompt the user, either 1.) asking user if it can terminate and returning TRUE (1) or FALSE (0) appropriately, or 2.) giving an indication as to why it cannot terminate and returning FALSE (0).

.NET Framework Security

See Also

Reference

OleComponent Class

OleComponent Members

Microsoft.VisualStudio.PlatformUI.OleComponentSupport Namespace