JsonFormatHandler Class

 

Represents the JSON mechanism for serializing request in additional formats.

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

System.Object
  Microsoft.Web.Mvc.Resources.JsonFormatHandler

type JsonFormatHandler = 
    class
        interface IRequestFormatHandler
        interface IResponseFormatHandler
    end

NameDescription
System_CAPS_pubmethodJsonFormatHandler()

Initializes a new instance of the JsonFormatHandler class.

NameDescription
System_CAPS_pubpropertyFriendlyName

Gets the preferred friendly name for the handled format.

NameDescription
System_CAPS_pubmethodCanDeserialize(ContentType)

Returns true if the specified request format can be deserialized.

System_CAPS_pubmethodCanSerialize(ContentType)

Returns true if the specified response format can be serialized.

System_CAPS_pubmethodDeserialize(ControllerContext, ModelBindingContext, ContentType)

Deserialize the object model into the JSON body in the specified request format.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodIsCompatibleMediaType(String)

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

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodSerialize(ControllerContext, Object, ContentType)

Serialize the object model into the JSON body in the specified response format.

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodTryMapFormatFriendlyName(String, ContentType)

Returns true if the specified friendly name ('xml' for instance) can be mapped to a content type ('application/xml' for instance). If the mapping can be performed return the content type that the friendlyName maps to.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: