Show / Hide Table of Contents

Class StringPassThroughMediaTypeFormatter

Inheritance
object
StringPassThroughMediaTypeFormatter
Namespace: DotNetNuke.Web.Api
Assembly: DotNetNuke.Web.dll
Syntax
public class StringPassThroughMediaTypeFormatter : MediaTypeFormatter

Constructors

StringPassThroughMediaTypeFormatter()

Declaration
public StringPassThroughMediaTypeFormatter()

StringPassThroughMediaTypeFormatter(IEnumerable<string>)

Declaration
public StringPassThroughMediaTypeFormatter(IEnumerable<string> mediaTypes)
Parameters
Type Name Description
IEnumerable<string> mediaTypes

Methods

CanReadType(Type)

Declaration
public override bool CanReadType(Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
bool

CanWriteType(Type)

Declaration
public override bool CanWriteType(Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
bool

ReadFromStreamAsync(Type, Stream, HttpContent, IFormatterLogger)

Declaration
public override Task<object> ReadFromStreamAsync(Type type, Stream readStream, HttpContent content, IFormatterLogger formatterLogger)
Parameters
Type Name Description
Type type
Stream readStream
HttpContent content
IFormatterLogger formatterLogger
Returns
Type Description
Task<object>

WriteToStreamAsync(Type, object, Stream, HttpContent, TransportContext)

Declaration
public override Task WriteToStreamAsync(Type type, object value, Stream writeStream, HttpContent content, TransportContext transportContext)
Parameters
Type Name Description
Type type
object value
Stream writeStream
HttpContent content
TransportContext transportContext
Returns
Type Description
Task

Extension Methods

JsonExtensionsWeb.ToJson(object)
Back to top by the community, for the community... #DNNCMS