Represents an attribute that is used to mark an action method whose output will be cached.
<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Method, Inherited := True, _ AllowMultiple := False)> _ Public Class OutputCacheAttribute _ Inherits ActionFilterAttribute
Dim instance As OutputCacheAttribute
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Method, Inherited = true, AllowMultiple = false)] public class OutputCacheAttribute : ActionFilterAttribute
[AttributeUsageAttribute(AttributeTargets::Class|AttributeTargets::Method, Inherited = true, AllowMultiple = false)] public ref class OutputCacheAttribute : public ActionFilterAttribute
For more information about how to use attributes, see Extending Metadata Using Attributes.