C# Класс Hypermedia.WebApi.HypermediaMediaTypeFormatter

Наследование: System.Net.Http.Formatting.MediaTypeFormatter
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Описание методов

CanReadOrWrite() защищенный Метод

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.
Результат bool

CanReadType() публичный Метод

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.
Результат bool

CanWriteType() публичный Метод

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.
Результат bool

HypermediaMediaTypeFormatter() защищенный Метод

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.
Результат System