Langage

Shell.GoToAsync Méthode

Définition

Surcharges

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

Accède de manière asynchrone à l’état spécifié avec le contrôle d’animation et les paramètres facultatifs.

GoToAsync(ShellNavigationState, Boolean, ShellNavigationQueryParameters)

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

GoToAsync(ShellNavigationState, IDictionary<String,Object>)

Accède de manière asynchrone à l’état spécifié avec des paramètres facultatifs.

GoToAsync(ShellNavigationState, ShellNavigationQueryParameters)

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

GoToAsync(ShellNavigationState)

Navigue de façon asynchrone vers le fichier spécifié state.

GoToAsync(ShellNavigationState, Boolean)

Accède de manière asynchrone au contrôle d’animation spécifié state .

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

Source:
Shell.cs
Source:
Shell.cs
Source:
Shell.cs
Source:
Shell.cs

Accède de manière asynchrone à l’état spécifié avec le contrôle d’animation et les paramètres facultatifs.

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

state
ShellNavigationState

État de navigation de l’interpréteur de commandes à accéder.

animate
Boolean

Indique s’il faut animer la transition de navigation.

parameters
IDictionary<String,Object>

Paramètres facultatifs à passer à la page de destination.

Retours

Tâche qui représente l’opération de navigation asynchrone.

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
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
Source:
Shell.cs
Source:
Shell.cs

Accède de manière asynchrone à l’état spécifié avec des paramètres facultatifs.

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

state
ShellNavigationState

État de navigation de l’interpréteur de commandes à accéder.

parameters
IDictionary<String,Object>

Paramètres facultatifs à passer à la page de destination.

Retours

Tâche qui représente l’opération de navigation asynchrone.

S’applique à

GoToAsync(ShellNavigationState, ShellNavigationQueryParameters)

Source:
Shell.cs
Source:
Shell.cs
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
Source:
Shell.cs
Source:
Shell.cs

Navigue de façon asynchrone vers le fichier spécifié state.

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

state
ShellNavigationState

État de navigation de l’interpréteur de commandes à accéder.

Retours

Tâche qui représente l’opération de navigation asynchrone.

S’applique à

GoToAsync(ShellNavigationState, Boolean)

Source:
Shell.cs
Source:
Shell.cs
Source:
Shell.cs
Source:
Shell.cs

Accède de manière asynchrone au contrôle d’animation spécifié state .

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

state
ShellNavigationState

État de navigation de l’interpréteur de commandes à accéder.

animate
Boolean

Indique s’il faut animer la transition de navigation.

Retours

Tâche qui représente l’opération de navigation asynchrone.

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 à