Partager via


Shell.GoToAsync Méthode

Définition

Surcharges

GoToAsync(ShellNavigationState, Boolean, IDictionary<String,Object>)

Accède de manière asynchrone à state, éventuellement en animation.

GoToAsync(ShellNavigationState, Boolean, ShellNavigationQueryParameters)

Cette méthode accède à un ShellNavigationState et retourne un Task.

GoToAsync(ShellNavigationState, IDictionary<String,Object>)
GoToAsync(ShellNavigationState, ShellNavigationQueryParameters)

Cette méthode accède à un ShellNavigationState et retourne une Task fois l’animation de navigation terminée.

GoToAsync(ShellNavigationState)
GoToAsync(ShellNavigationState, Boolean)

Accède de manière asynchrone à state, éventuellement en animation.

GoToAsync(ShellNavigationState, Boolean, IDictionary<String,Object>)

Source:
Shell.cs
Source:
Shell.cs

Accède de manière asynchrone à state, éventuellement en animation.

public:
 System::Threading::Tasks::Task ^ GoToAsync(Microsoft::Maui::Controls::ShellNavigationState ^ state, bool animate, System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ parameters);
public System.Threading.Tasks.Task GoToAsync (Microsoft.Maui.Controls.ShellNavigationState state, bool animate, System.Collections.Generic.IDictionary<string,object> parameters);
member this.GoToAsync : Microsoft.Maui.Controls.ShellNavigationState * bool * System.Collections.Generic.IDictionary<string, obj> -> System.Threading.Tasks.Task
Public Function GoToAsync (state As ShellNavigationState, animate As Boolean, parameters As IDictionary(Of String, Object)) As Task

Paramètres

animate
Boolean
parameters
IDictionary<String,Object>

Retours

Remarques

Notez qu’il ShellNavigationState existe des conversions implicites à partir de string et Uri, de sorte que les développeurs peuvent écrire du code tel que le suivant, sans instanciation explicite des ShellNavigationStateéléments suivants :

await Shell.Current.GoToAsync("app://xamarin.com/xaminals/animals/monkeys");

S’applique à

GoToAsync(ShellNavigationState, Boolean, ShellNavigationQueryParameters)

Source:
Shell.cs
Source:
Shell.cs

Cette méthode accède à un ShellNavigationState et retourne un Task.

public:
 System::Threading::Tasks::Task ^ GoToAsync(Microsoft::Maui::Controls::ShellNavigationState ^ state, bool animate, Microsoft::Maui::Controls::ShellNavigationQueryParameters ^ shellNavigationQueryParameters);
public System.Threading.Tasks.Task GoToAsync (Microsoft.Maui.Controls.ShellNavigationState state, bool animate, Microsoft.Maui.Controls.ShellNavigationQueryParameters shellNavigationQueryParameters);
member this.GoToAsync : Microsoft.Maui.Controls.ShellNavigationState * bool * Microsoft.Maui.Controls.ShellNavigationQueryParameters -> System.Threading.Tasks.Task
Public Function GoToAsync (state As ShellNavigationState, animate As Boolean, shellNavigationQueryParameters As ShellNavigationQueryParameters) As Task

Paramètres

state
ShellNavigationState

Définit le chemin d’accès de Shell à accéder.

animate
Boolean

Indique si votre transition est animée

shellNavigationQueryParameters
ShellNavigationQueryParameters

Paramètres à utiliser pour cette opération de navigation spécifique.

Retours

S’applique à

GoToAsync(ShellNavigationState, IDictionary<String,Object>)

Source:
Shell.cs
Source:
Shell.cs
public:
 System::Threading::Tasks::Task ^ GoToAsync(Microsoft::Maui::Controls::ShellNavigationState ^ state, System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ parameters);
public System.Threading.Tasks.Task GoToAsync (Microsoft.Maui.Controls.ShellNavigationState state, System.Collections.Generic.IDictionary<string,object> parameters);
member this.GoToAsync : Microsoft.Maui.Controls.ShellNavigationState * System.Collections.Generic.IDictionary<string, obj> -> System.Threading.Tasks.Task
Public Function GoToAsync (state As ShellNavigationState, parameters As IDictionary(Of String, Object)) As Task

Paramètres

parameters
IDictionary<String,Object>

Retours

S’applique à

GoToAsync(ShellNavigationState, ShellNavigationQueryParameters)

Source:
Shell.cs
Source:
Shell.cs

Cette méthode accède à un ShellNavigationState et retourne une Task fois l’animation de navigation terminée.

public:
 System::Threading::Tasks::Task ^ GoToAsync(Microsoft::Maui::Controls::ShellNavigationState ^ state, Microsoft::Maui::Controls::ShellNavigationQueryParameters ^ shellNavigationQueryParameters);
public System.Threading.Tasks.Task GoToAsync (Microsoft.Maui.Controls.ShellNavigationState state, Microsoft.Maui.Controls.ShellNavigationQueryParameters shellNavigationQueryParameters);
member this.GoToAsync : Microsoft.Maui.Controls.ShellNavigationState * Microsoft.Maui.Controls.ShellNavigationQueryParameters -> System.Threading.Tasks.Task
Public Function GoToAsync (state As ShellNavigationState, shellNavigationQueryParameters As ShellNavigationQueryParameters) As Task

Paramètres

state
ShellNavigationState

Définit le chemin d’accès de Shell à accéder.

shellNavigationQueryParameters
ShellNavigationQueryParameters

Paramètres à utiliser pour cette opération de navigation spécifique.

Retours

S’applique à

GoToAsync(ShellNavigationState)

Source:
Shell.cs
Source:
Shell.cs
public:
 System::Threading::Tasks::Task ^ GoToAsync(Microsoft::Maui::Controls::ShellNavigationState ^ state);
public System.Threading.Tasks.Task GoToAsync (Microsoft.Maui.Controls.ShellNavigationState state);
member this.GoToAsync : Microsoft.Maui.Controls.ShellNavigationState -> System.Threading.Tasks.Task
Public Function GoToAsync (state As ShellNavigationState) As Task

Paramètres

Retours

S’applique à

GoToAsync(ShellNavigationState, Boolean)

Source:
Shell.cs
Source:
Shell.cs

Accède de manière asynchrone à state, éventuellement en animation.

public:
 System::Threading::Tasks::Task ^ GoToAsync(Microsoft::Maui::Controls::ShellNavigationState ^ state, bool animate);
public System.Threading.Tasks.Task GoToAsync (Microsoft.Maui.Controls.ShellNavigationState state, bool animate);
member this.GoToAsync : Microsoft.Maui.Controls.ShellNavigationState * bool -> System.Threading.Tasks.Task
Public Function GoToAsync (state As ShellNavigationState, animate As Boolean) As Task

Paramètres

animate
Boolean

Retours

Remarques

Notez qu’il ShellNavigationState existe des conversions implicites à partir de string et Uri, de sorte que les développeurs peuvent écrire du code tel que le suivant, sans instanciation explicite des ShellNavigationStateéléments suivants :

await Shell.Current.GoToAsync("app://xamarin.com/xaminals/animals/monkeys");

S’applique à