.NET Framework Class Library
HandleErrorAttribute Class
Represents an attribute that is used to handle an exception that is thrown by an action method.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
Visual Basic (Declaration)
<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Method, Inherited := True, _ AllowMultiple := True)> _ Public Class HandleErrorAttribute _ Inherits FilterAttribute _ Implements IExceptionFilter
Visual Basic (Usage)
Dim instance As HandleErrorAttribute
C#
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Method, Inherited = true, AllowMultiple = true)] public class HandleErrorAttribute : FilterAttribute, IExceptionFilter
Visual C++
[AttributeUsageAttribute(AttributeTargets::Class|AttributeTargets::Method, Inherited = true, AllowMultiple = true)] public ref class HandleErrorAttribute : public FilterAttribute, IExceptionFilter
Remarks
For more information about using attributes, see Extending Metadata Using Attributes.
Inheritance Hierarchy
System.Object
System.Attribute
System.Web.Mvc.FilterAttribute
System.Web.Mvc.HandleErrorAttribute
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