IResponseFormatHandler.Serialize Method (ControllerContext, Object, ContentType)
Serialize the model into the response body in the specified response format.
Namespace: Microsoft.Web.Mvc.Resources
Assembly: Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)
Syntax
void Serialize(
ControllerContext context,
object model,
ContentType responseFormat
)
void Serialize(
ControllerContext^ context,
Object^ model,
ContentType^ responseFormat
)
abstract Serialize :
context:ControllerContext *
model:Object *
responseFormat:ContentType -> unit
Sub Serialize (
context As ControllerContext,
model As Object,
responseFormat As ContentType
)
Parameters
context
Type: System.Web.Mvc.ControllerContextThe controller context.
model
Type: System.ObjectThe object model.
responseFormat
Type: System.Net.Mime.ContentTypeThe content-type format.
See Also
IResponseFormatHandler Interface
Microsoft.Web.Mvc.Resources Namespace
Return to top