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
responseFormat
Type: System.Net.Mime.ContentTypeThe content-type format.
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