ChildActionOnlyAttribute Class

 

Represents an attribute that is used to indicate that an action method should be called only as a child action.

Namespace:   System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

System.Object
  System.Attribute
    System.Web.Mvc.FilterAttribute
      System.Web.Mvc.ChildActionOnlyAttribute

<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Method,
	AllowMultiple := False, Inherited := True)>
Public NotInheritable Class ChildActionOnlyAttribute
	Inherits FilterAttribute
	Implements IAuthorizationFilter

NameDescription
System_CAPS_pubmethodChildActionOnlyAttribute()

Initializes a new instance of the ChildActionOnlyAttribute class.

NameDescription
System_CAPS_pubpropertyAllowMultiple

Gets or sets a value that indicates whether more than one instance of the filter attribute can be specified.(Inherited from FilterAttribute.)

System_CAPS_pubpropertyOrder

Gets or sets the order in which the action filters are executed.(Inherited from FilterAttribute.)

System_CAPS_pubpropertyTypeId

(Inherited from Attribute.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodMatch(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodOnAuthorization(AuthorizationContext)

Called when authorization is required.

System_CAPS_pubmethodToString()

(Inherited from Object.)

A child action method renders inline HTML markup for part of a view instead of rendering a whole view.

Any method that is marked with ChildActionOnlyAttribute can be called only with the Action or RenderAction HTML extension methods.

For more information about using attributes, see .

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: