MultiFormatActionResult Class
Returns the response in the format specified by the request. By default, supports returning the model as a HTML view, XML and JSON. If the response format requested is not supported, then the NotAcceptable status code is returned.
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.MultiFormatActionResult
Syntax
public class MultiFormatActionResult : ActionResult
public ref class MultiFormatActionResult : ActionResult
type MultiFormatActionResult =
class
inherit ActionResult
end
Public Class MultiFormatActionResult
Inherits ActionResult
Constructors
Name | Description | |
---|---|---|
MultiFormatActionResult(Object, ContentType) | Initializes a new instance of the MultiFormatActionResult class. |
|
MultiFormatActionResult(Object, ContentType, HttpStatusCode) | Initializes a new instance of the MultiFormatActionResult class. |
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.) |
|
TryExecuteResult(ControllerContext, Object, ContentType) | Determines whether the specified context executes the processing of the result of an action method. |
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