Sdílet prostřednictvím


Shell.GoToAsync Metoda

Definice

Přetížení

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

Asynchronně přejde na state, volitelně animuje.

GoToAsync(ShellNavigationState, Boolean, ShellNavigationQueryParameters)

Tato metoda přejde na a ShellNavigationState vrátí Task.

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

Tato metoda přejde na ShellNavigationState a vrátí Task objekt, který se dokončí po animaci navigace.

GoToAsync(ShellNavigationState)
GoToAsync(ShellNavigationState, Boolean)

Asynchronně přejde na state, volitelně animuje.

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

Zdroj:
Shell.cs
Zdroj:
Shell.cs

Asynchronně přejde na state, volitelně animuje.

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

Parametry

animate
Boolean
parameters
IDictionary<String,Object>

Návraty

Poznámky

Všimněte si, že ShellNavigationState má implicitní převody z string a Uri, takže vývojáři mohou psát kód, například následující, bez explicitní instance objektu ShellNavigationState:

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

Platí pro

GoToAsync(ShellNavigationState, Boolean, ShellNavigationQueryParameters)

Zdroj:
Shell.cs
Zdroj:
Shell.cs

Tato metoda přejde na a ShellNavigationState vrátí 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

Parametry

state
ShellNavigationState

Definuje cestu pro Shell, na kterou se má přejít.

animate
Boolean

Označuje, jestli je přechod animovaný.

shellNavigationQueryParameters
ShellNavigationQueryParameters

Parametry, které se mají použít pro tuto konkrétní operaci navigace.

Návraty

Platí pro

GoToAsync(ShellNavigationState, IDictionary<String,Object>)

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

Parametry

parameters
IDictionary<String,Object>

Návraty

Platí pro

GoToAsync(ShellNavigationState, ShellNavigationQueryParameters)

Zdroj:
Shell.cs
Zdroj:
Shell.cs

Tato metoda přejde na ShellNavigationState a vrátí Task objekt, který se dokončí po animaci navigace.

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

Parametry

state
ShellNavigationState

Definuje cestu pro Shell, na kterou se má přejít.

shellNavigationQueryParameters
ShellNavigationQueryParameters

Parametry, které se mají použít pro tuto konkrétní operaci navigace.

Návraty

Platí pro

GoToAsync(ShellNavigationState)

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

Parametry

Návraty

Platí pro

GoToAsync(ShellNavigationState, Boolean)

Zdroj:
Shell.cs
Zdroj:
Shell.cs

Asynchronně přejde na state, volitelně animuje.

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

Parametry

animate
Boolean

Návraty

Poznámky

Všimněte si, že ShellNavigationState má implicitní převody z string a Uri, takže vývojáři mohou psát kód, například následující, bez explicitní instance objektu ShellNavigationState:

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

Platí pro