Share via


JsonFormatHandler.CanDeserialize Method (ContentType)

 

Returns true if the specified request format can be deserialized.

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

Syntax

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

Parameters

Return Value

Type: System.Boolean

true if the specified request format can be deserialized; otherwise, false.

Implements

IRequestFormatHandler.CanDeserialize(ContentType)

See Also

JsonFormatHandler Class
Microsoft.Web.Mvc.Resources Namespace

Return to top