Condividi tramite


EditorControl.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.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)

Syntax

'Dichiarazione
Public Overrides Function FQueryTerminate ( _
    fPromptUser As Integer _
) As Integer
'Utilizzo
Dim instance As EditorControl
Dim fPromptUser As Integer
Dim returnValue As Integer

returnValue = instance.FQueryTerminate(fPromptUser)
public override int FQueryTerminate(
    int fPromptUser
)
public:
virtual int FQueryTerminate(
    int fPromptUser
) override
abstract FQueryTerminate : 
        fPromptUser:int -> int 
override FQueryTerminate : 
        fPromptUser:int -> int 
public override function FQueryTerminate(
    fPromptUser : int
) : int

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
true if the component can terminate, otherwise false.

Implements

IOleComponent.FQueryTerminate(Int32)

Remarks

By default this method is not implemented and returns true.

.NET Framework Security

See Also

Reference

EditorControl Class

EditorControl Members

Microsoft.VisualStudio.Package Namespace