Freigeben über


UrlHelperBase.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:
 abstract System::String ^ Action(Microsoft::AspNetCore::Mvc::Routing::UrlActionContext ^ actionContext);
public abstract string Action (Microsoft.AspNetCore.Mvc.Routing.UrlActionContext actionContext);
public abstract string? Action (Microsoft.AspNetCore.Mvc.Routing.UrlActionContext actionContext);
abstract member Action : Microsoft.AspNetCore.Mvc.Routing.UrlActionContext -> string
Public MustOverride 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: