UrlHelper.Action(UrlActionContext) Yöntem

Tanım

bir eylem yöntemi için, tarafından belirtilen UrlActionContexteylem adını, denetleyici adını, yol değerlerini, kullanılacak protokolü, ana bilgisayar adını ve parçasını içeren mutlak yolu olan bir URL oluşturur. ve Host değilsenull mutlak bir URL Protocol oluşturur. Önemli güvenlik bilgileri için açıklamalar bölümüne bakın.

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

Parametreler

actionContext
UrlActionContext

Bir eylem yöntemi için oluşturulan URL'ler için bağlam nesnesi.

Döndürülenler

Oluşturulan URL.

Uygulamalar

Şunlara uygulanır