Share via


JsonFormatHandler.Serialize Method (ControllerContext, Object, ContentType)

 

Serialize the object model into the JSON 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

Implements

IResponseFormatHandler.Serialize(ControllerContext, Object, ContentType)

See Also

JsonFormatHandler Class
Microsoft.Web.Mvc.Resources Namespace

Return to top