次の方法で共有


ConnectedServiceSinglePage.OnPageLeavingAsync Method

Definition

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.

Applies to