Share via


JsonFormatHandler.IsCompatibleMediaType Method (String)

 

Returns true if the object is compatible to the media type.

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

Syntax

protected virtual bool IsCompatibleMediaType(
    string mediaType
)
protected:
virtual bool IsCompatibleMediaType(
    String^ mediaType
)
abstract IsCompatibleMediaType : 
        mediaType:string -> bool
override IsCompatibleMediaType : 
        mediaType:string -> bool
Protected Overridable Function IsCompatibleMediaType (
    mediaType As String
) As Boolean

Parameters

Return Value

Type: System.Boolean

true if the object is compatible to the media type; otherwise, false.

See Also

JsonFormatHandler Class
Microsoft.Web.Mvc.Resources Namespace

Return to top