Share via


Shell.GoToAsync Método

Definição

Sobrecargas

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

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

GoToAsync(ShellNavigationState, Boolean, ShellNavigationQueryParameters)

Esse método navega para um ShellNavigationState e retorna um Task.

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

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

GoToAsync(ShellNavigationState)
GoToAsync(ShellNavigationState, Boolean)

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

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

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

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 ShellNavigationState tem conversões implícitas de string e Uri, portanto, os desenvolvedores podem escrever código como o seguinte, sem instanciação explícita do ShellNavigationState:

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

Aplica-se a

GoToAsync(ShellNavigationState, Boolean, ShellNavigationQueryParameters)

Esse método navega para um 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 shell para o qual navegar.

animate
Boolean

Indica se a 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>)

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)

Esse método navega até um ShellNavigationState e retorna um Task que será concluído após 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 shell para o qual navegar.

shellNavigationQueryParameters
ShellNavigationQueryParameters

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

Retornos

Aplica-se a

GoToAsync(ShellNavigationState)

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)

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

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 ShellNavigationState tem conversões implícitas de string e Uri, portanto, os desenvolvedores podem escrever código como o seguinte, sem instanciação explícita do ShellNavigationState:

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

Aplica-se a