Shell.GoToAsync Método

Definición

Sobrecargas

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

De forma asincrónica, navega a state, opcionalmente animando.

GoToAsync(ShellNavigationState, Boolean, ShellNavigationQueryParameters)

Este método navega a y ShellNavigationState devuelve un Taskobjeto .

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

Este método navega a y ShellNavigationState devuelve un Task objeto que se completará una vez que la animación de navegación.

GoToAsync(ShellNavigationState)
GoToAsync(ShellNavigationState, Boolean)

De forma asincrónica, navega a state, opcionalmente animando.

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

De forma asincrónica, navega a 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>

Devoluciones

Comentarios

Tenga en cuenta que ShellNavigationState tiene conversiones implícitas de string y Uri, por lo que los desarrolladores pueden escribir código como el siguiente, sin creación de instancias explícitas de ShellNavigationState:

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

Se aplica a

GoToAsync(ShellNavigationState, Boolean, ShellNavigationQueryParameters)

Este método navega a y ShellNavigationState devuelve un Taskobjeto .

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 la ruta de acceso de Shell a la que navegar.

animate
Boolean

Indica si la transición está animada.

shellNavigationQueryParameters
ShellNavigationQueryParameters

Parámetros que se usarán para esta operación de navegación específica.

Devoluciones

Se aplica 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>

Devoluciones

Se aplica a

GoToAsync(ShellNavigationState, ShellNavigationQueryParameters)

Este método navega a y ShellNavigationState devuelve un Task objeto que se completará una vez que la animación de navegación.

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 la ruta de acceso de Shell a la que navegar.

shellNavigationQueryParameters
ShellNavigationQueryParameters

Parámetros que se usarán para esta operación de navegación específica.

Devoluciones

Se aplica 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

Devoluciones

Se aplica a

GoToAsync(ShellNavigationState, Boolean)

De forma asincrónica, navega a 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

Devoluciones

Comentarios

Tenga en cuenta que ShellNavigationState tiene conversiones implícitas de string y Uri, por lo que los desarrolladores pueden escribir código como el siguiente, sin creación de instancias explícitas de ShellNavigationState:

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

Se aplica a