ConnectedServiceSinglePage.OnPageLeavingAsync 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.
OnPageLeavingAsync is called on a ConnectedServiceSinglePage when the user is navigating away from the page. This occurs before ConnectedServiceSinglePage.GetFinishedServiceInstanceAsync() is invoked and allows the dialog to perform extra validation before navigating away from the page.
public:
virtual System::Threading::Tasks::Task<Microsoft::VisualStudio::ConnectedServices::PageNavigationResult ^> ^ OnPageLeavingAsync();
public virtual System.Threading.Tasks.Task<Microsoft.VisualStudio.ConnectedServices.PageNavigationResult> OnPageLeavingAsync ();
abstract member OnPageLeavingAsync : unit -> System.Threading.Tasks.Task<Microsoft.VisualStudio.ConnectedServices.PageNavigationResult>
override this.OnPageLeavingAsync : unit -> System.Threading.Tasks.Task<Microsoft.VisualStudio.ConnectedServices.PageNavigationResult>
Public Overridable Function OnPageLeavingAsync () As Task(Of PageNavigationResult)
Returns
A PageNavigationResult that describes the success/failure state of the navigation.