Share via


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

See Also

IResponseFormatHandler Interface
Microsoft.Web.Mvc.Resources Namespace

Return to top