System.Web.Mvc Namespace


.NET Framework Class Library
OutputCacheAttribute Class

Represents an attribute that is used to mark an action method whose output will be cached.

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

Visual Basic (Declaration)
<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Method, Inherited := True,  _
    AllowMultiple := False)> _
Public Class OutputCacheAttribute _
    Inherits ActionFilterAttribute
Visual Basic (Usage)
Dim instance As OutputCacheAttribute
C#
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Method, Inherited = true, 
    AllowMultiple = false)]
public class OutputCacheAttribute : ActionFilterAttribute
Visual C++
[AttributeUsageAttribute(AttributeTargets::Class|AttributeTargets::Method, Inherited = true, 
    AllowMultiple = false)]
public ref class OutputCacheAttribute : public ActionFilterAttribute
Remarks

For more information about how to use attributes, see Extending Metadata Using Attributes.

Inheritance Hierarchy

System..::.Object
  System..::.Attribute
    System.Web.Mvc..::.FilterAttribute
      System.Web.Mvc..::.ActionFilterAttribute
        System.Web.Mvc..::.OutputCacheAttribute
Thread Safety

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

Reference

Other Resources

Tags :


Page view tracker