Freigeben über


Shell.GoToAsync Methode

Definition

Überlädt

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

Navigiert asynchron zu state, optional animiert.

GoToAsync(ShellNavigationState, Boolean, ShellNavigationQueryParameters)

Diese Methode navigiert zu einem ShellNavigationState und gibt ein zurück Task.

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

Diese Methode navigiert zu einem ShellNavigationState und gibt eine Task zurück, die nach der Navigationsanimation abgeschlossen wird.

GoToAsync(ShellNavigationState)
GoToAsync(ShellNavigationState, Boolean)

Navigiert asynchron zu state, optional animiert.

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

Navigiert asynchron zu state, optional animiert.

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

Parameter

animate
Boolean
parameters
IDictionary<String,Object>

Gibt zurück

Hinweise

Beachten Sie, dass ShellNavigationState implizite Konvertierungen von string und Uriaufweist, sodass Entwickler Code wie den folgenden schreiben können, ohne explizite Instanziierung von ShellNavigationState:

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

Gilt für:

GoToAsync(ShellNavigationState, Boolean, ShellNavigationQueryParameters)

Diese Methode navigiert zu einem ShellNavigationState und gibt ein zurück 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

Parameter

state
ShellNavigationState

Definiert den Pfad, zu dem Shell navigieren soll.

animate
Boolean

Gibt an, ob Ihr Übergang animiert ist

shellNavigationQueryParameters
ShellNavigationQueryParameters

Parameter, die für diesen spezifischen Navigationsvorgang verwendet werden sollen.

Gibt zurück

Gilt für:

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

Parameter

parameters
IDictionary<String,Object>

Gibt zurück

Gilt für:

GoToAsync(ShellNavigationState, ShellNavigationQueryParameters)

Diese Methode navigiert zu einem ShellNavigationState und gibt eine Task zurück, die nach der Navigationsanimation abgeschlossen wird.

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

Parameter

state
ShellNavigationState

Definiert den Pfad, zu dem Shell navigieren soll.

shellNavigationQueryParameters
ShellNavigationQueryParameters

Parameter, die für diesen spezifischen Navigationsvorgang verwendet werden sollen.

Gibt zurück

Gilt für:

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

Parameter

Gibt zurück

Gilt für:

GoToAsync(ShellNavigationState, Boolean)

Navigiert asynchron zu state, optional animiert.

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

Parameter

animate
Boolean

Gibt zurück

Hinweise

Beachten Sie, dass ShellNavigationState implizite Konvertierungen von string und Uriaufweist, sodass Entwickler Code wie den folgenden schreiben können, ohne explizite Instanziierung von ShellNavigationState:

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

Gilt für: