Share via


FormatManager.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:
bool CanSerialize(
    ContentType^ responseFormat
)
member 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.

See Also

FormatManager Class
Microsoft.Web.Mvc.Resources Namespace

Return to top