IOleInPlaceComponent::FQueryClose Method (Int32)

 

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

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int FQueryClose(
	int fPromptUser
)

Parameters

fpromptuser

[in] Flag set to true if the in-place object's user should be asked whether or not unsaved data should be saved.

Return Value

Type: System::Int32

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.

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.

Return to top
Show: