UrlHelper.Action(UrlActionContext) Methode

Definition

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: