IPeekResultPresentation.TryPrepareToClose Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Prepare to close the presentation.
public:
bool TryPrepareToClose();
public:
bool TryPrepareToClose();
bool TryPrepareToClose();
public bool TryPrepareToClose ();
abstract member TryPrepareToClose : unit -> bool
Public Function TryPrepareToClose () As Boolean
Returns
Returns true
if the presentation is allowed to close; false
otherwise.
Remarks
This method is called with the presentation is explicitly being closed to give the user, if the presentation corresponds to a modified document, the opportunity to save the document if desired.
If this method returns true
, the caller must close the presentation (typically by dismissing the containing peek session).