XmlFormatHandler.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
public void Serialize(
ControllerContext context,
object model,
ContentType responseFormat
)
public:
virtual void Serialize(
ControllerContext^ context,
Object^ model,
ContentType^ responseFormat
) sealed
abstract Serialize :
context:ControllerContext *
model:Object *
responseFormat:ContentType -> unit
override Serialize :
context:ControllerContext *
model:Object *
responseFormat:ContentType -> unit
Public 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 response format.
Implements
IResponseFormatHandler.Serialize(ControllerContext, Object, ContentType)
See Also
XmlFormatHandler Class
Microsoft.Web.Mvc.Resources Namespace
Return to top