次の方法で共有


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.

public:
 int FQueryTerminate(int fPromptUser);
public:
 int FQueryTerminate(int fPromptUser);
int FQueryTerminate(int fPromptUser);
public int FQueryTerminate (int fPromptUser);
abstract member FQueryTerminate : int -> int
Public Function FQueryTerminate (fPromptUser As Integer) As Integer

Parameters

fPromptUser
Int32

true if the user should be prompted, otherwise false.

Returns

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.

Applies to