MultiFormatActionResult Constructor
Initializes a new instance of the MultiFormatActionResult class.
Namespace: Microsoft.Web.Mvc.Resources
Assembly: Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)
Overload List
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. |
See Also
MultiFormatActionResult Class
Microsoft.Web.Mvc.Resources Namespace
Return to top
MultiFormatActionResult Constructor (Object, ContentType)
Initializes a new instance of the MultiFormatActionResult class.
Syntax
public MultiFormatActionResult(
object model,
ContentType responseFormat
)
public:
MultiFormatActionResult(
Object^ model,
ContentType^ responseFormat
)
new :
model:Object *
responseFormat:ContentType -> MultiFormatActionResult
Public Sub New (
model As Object,
responseFormat As ContentType
)
Parameters
model
Type: System.ObjectThe object model.
responseFormat
Type: System.Net.Mime.ContentTypeThe response format.
Return to top
MultiFormatActionResult Constructor (Object, ContentType, HttpStatusCode)
Initializes a new instance of the MultiFormatActionResult class.
Syntax
public MultiFormatActionResult(
object model,
ContentType responseFormat,
HttpStatusCode statusCode
)
public:
MultiFormatActionResult(
Object^ model,
ContentType^ responseFormat,
HttpStatusCode statusCode
)
new :
model:Object *
responseFormat:ContentType *
statusCode:HttpStatusCode -> MultiFormatActionResult
Public Sub New (
model As Object,
responseFormat As ContentType,
statusCode As HttpStatusCode
)
Parameters
model
Type: System.ObjectThe object model.
responseFormat
Type: System.Net.Mime.ContentTypeThe response format.
statusCode
Type: System.Net.HttpStatusCodeThe status code.
Return to top