Partager via


IVsWindowFrameNotify2.OnClose(UInt32) Method

Definition

Notifies the VSPackage that a window frame is closing and tells the environment what action to take.

public:
 int OnClose([Runtime::InteropServices::Out] System::UInt32 % pgrfSaveOptions);
int OnClose([Runtime::InteropServices::Out] unsigned int & pgrfSaveOptions);
public int OnClose (out uint pgrfSaveOptions);
abstract member OnClose : uint32 -> int
Public Function OnClose (ByRef pgrfSaveOptions As UInteger) As Integer

Parameters

pgrfSaveOptions
UInt32

[in, out] Specifies options for saving window content. Values are taken from the __FRAMECLOSE enumeration.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsWindowFrameNotify2::OnClose(  
   [in, out] FRAMECLOSE *pgrfSaveOptions  
);  

Implementers should develop code to notify users and prompt for save and close and relay those decisions to the environment through IVsWindowFrameNotify2.

Applies to