C# 클래스 Hypermedia.WebApi.HypermediaMediaTypeFormatter

상속: System.Net.Http.Formatting.MediaTypeFormatter
파일 보기 프로젝트 열기: cosullivan/Hypermedia

공개 메소드들

메소드 설명
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