Share via


IResponseFormatHandler.CanSerialize Method (ContentType)

 

Returns true if the specified response format can be serialized.

Namespace:   Microsoft.Web.Mvc.Resources
Assembly:  Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)

Syntax

bool CanSerialize(
    ContentType responseFormat
)
bool CanSerialize(
    ContentType^ responseFormat
)
abstract CanSerialize : 
        responseFormat:ContentType -> bool
Function CanSerialize (
    responseFormat As ContentType
) As Boolean

Parameters

Return Value

Type: System.Boolean

true if the specified response format can be serialized; otherwise, false.

See Also

IResponseFormatHandler Interface
Microsoft.Web.Mvc.Resources Namespace

Return to top