UrlHelper.Action(UrlActionContext) Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Generiert eine URL mit einem absoluten Pfad für eine Aktionsmethode, die den Aktionsnamen, den Controllernamen, die Routenwerte, das zu verwendende Protokoll, den Hostnamen und das von UrlActionContextangegebene Fragment enthält. Generiert eine absolute URL, wenn Protocol und Host nicht sindnull
. Wichtige Sicherheitsinformationen finden Sie im Abschnitt "Hinweise".
public:
virtual System::String ^ Action(Microsoft::AspNetCore::Mvc::Routing::UrlActionContext ^ actionContext);
public:
override System::String ^ Action(Microsoft::AspNetCore::Mvc::Routing::UrlActionContext ^ actionContext);
public virtual string Action (Microsoft.AspNetCore.Mvc.Routing.UrlActionContext actionContext);
public override string Action (Microsoft.AspNetCore.Mvc.Routing.UrlActionContext actionContext);
public override string? Action (Microsoft.AspNetCore.Mvc.Routing.UrlActionContext actionContext);
abstract member Action : Microsoft.AspNetCore.Mvc.Routing.UrlActionContext -> string
override this.Action : Microsoft.AspNetCore.Mvc.Routing.UrlActionContext -> string
override this.Action : Microsoft.AspNetCore.Mvc.Routing.UrlActionContext -> string
Public Overridable Function Action (actionContext As UrlActionContext) As String
Public Overrides Function Action (actionContext As UrlActionContext) As String
Parameter
- actionContext
- UrlActionContext
Das Kontextobjekt für die generierten URLs für eine Aktionsmethode.
Gibt zurück
Die generierte URL.
Implementiert
Gilt für:
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für