C# Class Hypermedia.WebApi.HypermediaMediaTypeFormatter

Inheritance: System.Net.Http.Formatting.MediaTypeFormatter
Afficher le fichier Open project: cosullivan/Hypermedia

Méthodes publiques

Méthode Description
CanReadType ( Type type ) : bool

Queries whether this T:System.Net.Http.Formatting.MediaTypeFormatter can deserializean object of the specified type.

CanWriteType ( Type type ) : bool

Queries whether this T:System.Net.Http.Formatting.MediaTypeFormatter can serializean object of the specified type.

Méthodes protégées

Méthode Description
CanReadOrWrite ( Type type ) : bool

Returns a value indicating whether or not the dictionary has a metadata mapping for the given type.

HypermediaMediaTypeFormatter ( string name, string mediaTypeName, IContractResolver contractResolver ) : System

Constructor.

Method Details

CanReadOrWrite() protected méthode

Returns a value indicating whether or not the dictionary has a metadata mapping for the given type.
protected CanReadOrWrite ( Type type ) : bool
type System.Type The element type to test for a mapping.
Résultat bool

CanReadType() public méthode

Queries whether this T:System.Net.Http.Formatting.MediaTypeFormatter can deserializean object of the specified type.
public CanReadType ( Type type ) : bool
type System.Type The type to deserialize.
Résultat bool

CanWriteType() public méthode

Queries whether this T:System.Net.Http.Formatting.MediaTypeFormatter can serializean object of the specified type.
public CanWriteType ( Type type ) : bool
type System.Type The type to serialize.
Résultat bool

HypermediaMediaTypeFormatter() protected méthode

Constructor.
protected HypermediaMediaTypeFormatter ( string name, string mediaTypeName, IContractResolver contractResolver ) : System
name string The friendly name of the format.
mediaTypeName string The correct media type name for content negotiation.
contractResolver IContractResolver The resource contract resolver used to resolve the contracts at runtime.
Résultat System