Compartilhar via


Shell.GoToAsync Método

Definição

Sobrecargas

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

Navega de forma assíncrona para state, opcionalmente animando.

GoToAsync(ShellNavigationState, Boolean, ShellNavigationQueryParameters)

Esse método navega até a ShellNavigationState e retorna um Task.

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

Esse método navega até a ShellNavigationState e retorna um Task que será concluído assim que a animação de navegação.

GoToAsync(ShellNavigationState)
GoToAsync(ShellNavigationState, Boolean)

Navega de forma assíncrona para state, opcionalmente animando.

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

Origem:
Shell.cs
Origem:
Shell.cs

Navega de forma assíncrona para state, opcionalmente animando.

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

Parâmetros

animate
Boolean
parameters
IDictionary<String,Object>

Retornos

Comentários

Observe que tem conversões implícitas de string e , para que ShellNavigationState os desenvolvedores possam escrever código como o seguinte, sem instanciação explícita do ShellNavigationStateUri:

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

Aplica-se a

GoToAsync(ShellNavigationState, Boolean, ShellNavigationQueryParameters)

Origem:
Shell.cs
Origem:
Shell.cs

Esse método navega até a ShellNavigationState e retorna um 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

Parâmetros

state
ShellNavigationState

Define o caminho para o qual o Shell navegar.

animate
Boolean

Indica se sua transição é animada

shellNavigationQueryParameters
ShellNavigationQueryParameters

Parâmetros a serem usados para essa operação de navegação específica.

Retornos

Aplica-se a

GoToAsync(ShellNavigationState, IDictionary<String,Object>)

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

Parâmetros

parameters
IDictionary<String,Object>

Retornos

Aplica-se a

GoToAsync(ShellNavigationState, ShellNavigationQueryParameters)

Origem:
Shell.cs
Origem:
Shell.cs

Esse método navega até a ShellNavigationState e retorna um Task que será concluído assim que a animação de navegação.

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

Parâmetros

state
ShellNavigationState

Define o caminho para o qual o Shell navegar.

shellNavigationQueryParameters
ShellNavigationQueryParameters

Parâmetros a serem usados para essa operação de navegação específica.

Retornos

Aplica-se a

GoToAsync(ShellNavigationState)

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

Parâmetros

Retornos

Aplica-se a

GoToAsync(ShellNavigationState, Boolean)

Origem:
Shell.cs
Origem:
Shell.cs

Navega de forma assíncrona para state, opcionalmente animando.

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

Parâmetros

animate
Boolean

Retornos

Comentários

Observe que tem conversões implícitas de string e , para que ShellNavigationState os desenvolvedores possam escrever código como o seguinte, sem instanciação explícita do ShellNavigationStateUri:

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

Aplica-se a