Share via


IPeekResultPresentation.TryPrepareToClose Method

Definition

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).

Applies to