다음을 통해 공유


IOleInPlaceComponent.FQueryClose Method

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)

Syntax

‘선언
Function FQueryClose ( _
    fPromptUser As Integer _
) As Integer
‘사용 방법
Dim instance As IOleInPlaceComponent
Dim fPromptUser As Integer
Dim returnValue As Integer

returnValue = instance.FQueryClose(fPromptUser)
int FQueryClose(
    int fPromptUser
)
int FQueryClose(
    [InAttribute] int fPromptUser
)
abstract FQueryClose : 
        fPromptUser:int -> int 
function FQueryClose(
    fPromptUser : int
) : int

Parameters

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.

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.

.NET Framework Security

See Also

Reference

IOleInPlaceComponent Interface

IOleInPlaceComponent Members

Microsoft.VisualStudio.Shell.Interop Namespace