ResourceErrorActionResult Class
Represents an action result for returning HTTP errors that result from performing operations on resources, including an optional detail in the HTTP body.
Namespace: Microsoft.Web.Mvc.Resources
Assembly: Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)
Inheritance Hierarchy
System.Object
System.Web.Mvc.ActionResult
Microsoft.Web.Mvc.Resources.ResourceErrorActionResult
Syntax
public class ResourceErrorActionResult : ActionResult
public ref class ResourceErrorActionResult : ActionResult
type ResourceErrorActionResult =
class
inherit ActionResult
end
Public Class ResourceErrorActionResult
Inherits ActionResult
Constructors
Name | Description | |
---|---|---|
ResourceErrorActionResult(HttpException, ContentType) | Initializes a new instance of the ResourceErrorActionResult class Sends back a response using the status code in the HttpException. The response body contains a details serialized in the responseFormat. If the HttpException.Data has a key named "details", its value is used as the response body. If there is no such key, HttpException.ToString() is used as the response body. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
ExecuteResult(ControllerContext) | Enables processing of the result of an action method by a custom type that inherits from the ActionResult class.(Overrides ActionResult.ExecuteResult(ControllerContext).) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
ToString() | (Inherited from Object.) |
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
Microsoft.Web.Mvc.Resources Namespace
Return to top