Udostępnij za pośrednictwem


IOleInPlaceComponent.FQueryClose(Int32) Method

Definition

Queries an in-place VSPackage object to determine whether or not the object can terminate.

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

Parameters

fPromptUser
Int32

Returns

FQueryClose returns true if the method succeeded or if saving is not required and false if the save failed or if saving is not possible.

Remarks

COM Signature

From oleipc.idl:

BOOL IOleInPlaceComponent::FQueryClose(  
   [in] BOOL fPromptUser  
);  

FQueryClose is called as part of the environment's closing process. The environment calls the FQueryClose method of each one of its in-place objects. An in-place object should save all unsaved data unless the user has elected to discard changes.

Applies to