ChildActionOnlyAttribute 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示用來指出僅應將動作方法做為子系動作進行呼叫的屬性。
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public sealed class ChildActionOnlyAttribute : System.Web.Mvc.FilterAttribute, System.Web.Mvc.IAuthorizationFilter
type ChildActionOnlyAttribute = class
inherit FilterAttribute
interface IAuthorizationFilter
Public NotInheritable Class ChildActionOnlyAttribute
Inherits FilterAttribute
Implements IAuthorizationFilter
- 繼承
- 屬性
- 實作
建構函式
ChildActionOnlyAttribute() |
初始化 ChildActionOnlyAttribute 類別的新執行個體。 |
屬性
AllowMultiple |
取得或設定值,這個值表示是否可以指定多個篩選條件屬性執行個體。 (繼承來源 FilterAttribute) |
Order |
取得或設定動作篩選條件的執行順序。 (繼承來源 FilterAttribute) |
方法
OnAuthorization(AuthorizationContext) |
在需要授權時呼叫。 |