Udostępnij za pośrednictwem


OleComponent.IOleComponent.FQueryTerminate(Int32) Method

Definition

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

 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

A value indicating whether user prompting should occur if necessary.

Returns

TRUE (1) if the component can terminate, FALSE (0) otherwise.

Implements

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).

Applies to