Share via


ChildActionOnlyAttribute.OnAuthorization(AuthorizationContext) 方法

定義

在需要授權時呼叫。

public void OnAuthorization (System.Web.Mvc.AuthorizationContext filterContext);
abstract member OnAuthorization : System.Web.Mvc.AuthorizationContext -> unit
override this.OnAuthorization : System.Web.Mvc.AuthorizationContext -> unit
Public Sub OnAuthorization (filterContext As AuthorizationContext)

參數

filterContext
AuthorizationContext

物件,封裝授權存取子動作所需的資訊。

實作

適用於