IPeekResultPresentation::TryPrepareToClose Method ()

Visual Studio 2015
 

Prepare to close the presentation.

Namespace:   Microsoft.VisualStudio.Language.Intellisense
Assembly:  Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)

bool TryPrepareToClose()

Return Value

Type: System::Boolean

Returns true if the presentation is allowed to close; false otherwise.

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 <c>true</c>, the caller must close the presentation (typically by dismissing the containing peek session).

Return to top
Show: