Compartilhar via


SingleTaskIdleManager.IOleComponent.FQueryTerminate(Int32) Method

Definition

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

 virtual int Microsoft.VisualStudio.OLE.Interop.IOleComponent.FQueryTerminate(int fPromptUser) = Microsoft::VisualStudio::OLE::Interop::IOleComponent::FQueryTerminate;
 virtual int Microsoft.VisualStudio.OLE.Interop.IOleComponent.FQueryTerminate(int fPromptUser) = Microsoft::VisualStudio::OLE::Interop::IOleComponent::FQueryTerminate;
int Microsoft.VisualStudio.OLE.Interop.IOleComponent.FQueryTerminate(int fPromptUser);
int IOleComponent.FQueryTerminate (int fPromptUser);
abstract member Microsoft.VisualStudio.OLE.Interop.IOleComponent.FQueryTerminate : int -> int
override this.Microsoft.VisualStudio.OLE.Interop.IOleComponent.FQueryTerminate : int -> int
Function FQueryTerminate (fPromptUser As Integer) As Integer Implements IOleComponent.FQueryTerminate

Parameters

fPromptUser
Int32

true if the user should be prompted, otherwise false.

Returns

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

Applies to