Share via


JsonFormatHandler.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

public bool CanSerialize(
    ContentType responseFormat
)
public:
virtual bool CanSerialize(
    ContentType^ responseFormat
) sealed
abstract CanSerialize : 
        responseFormat:ContentType -> bool
override CanSerialize : 
        responseFormat:ContentType -> bool
Public Function CanSerialize (
    responseFormat As ContentType
) As Boolean

Parameters

Return Value

Type: System.Boolean

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

Implements

IResponseFormatHandler.CanSerialize(ContentType)

See Also

JsonFormatHandler Class
Microsoft.Web.Mvc.Resources Namespace

Return to top