C# Class Cocktail.NavigationCancelArgs

Provides data for the INavigationTarget.OnNavigatingFrom callback that can be used to cancel a navigation request.
Afficher le fichier Open project: IdeaBlade/Punch Class Usage Examples

Private Properties

Свойство Type Description
EnsureTaskCompletionSource void

Méthodes publiques

Méthode Description
Cancel ( ) : void

Cancel the current navigation request.

Complete ( ) : void

Signals to the current navigation that it can continue successfully.

Defer ( ) : void

Defers continuation of the current navigation until one of the following methods is called: Complete, Fail, Cancel

Fail ( Exception error ) : void

Signals to the current navigation that it must continue with the provided error.

Private Methods

Méthode Description
EnsureTaskCompletionSource ( ) : void

Method Details

Cancel() public méthode

Cancel the current navigation request.
public Cancel ( ) : void
Résultat void

Complete() public méthode

Signals to the current navigation that it can continue successfully.
public Complete ( ) : void
Résultat void

Defer() public méthode

Defers continuation of the current navigation until one of the following methods is called: Complete, Fail, Cancel
Thrown if Defer has previously been called or the navigation no longer allows deferal.
public Defer ( ) : void
Résultat void

Fail() public méthode

Signals to the current navigation that it must continue with the provided error.
public Fail ( Exception error ) : void
error System.Exception The reason why the navigation failed.
Résultat void