MediaTypeFormatter
MediaTypeFormatter()
MediaTypeFormatter(MediaTypeFormatter)
MaxHttpCollectionKeys
MediaTypeMappings
RequiredMemberSelector
SupportedEncodings
SupportedMediaTypes
CanReadType(Type)
CanWriteType(Type)
GetDefaultValueForType(Type)
GetPerRequestFormatterInstance(Type, HttpRequestMessage, MediaTypeHeaderValue)
ReadFromStreamAsync(Type, Stream, HttpContent, IFormatterLogger)
ReadFromStreamAsync(Type, Stream, HttpContent, IFormatterLogger, CancellationToken)
SelectCharacterEncoding(HttpContentHeaders)
SetDefaultContentHeaders(Type, HttpContentHeaders, MediaTypeHeaderValue)
WriteToStreamAsync(Type, Object, Stream, HttpContent, TransportContext)
WriteToStreamAsync(Type, Object, Stream, HttpContent, TransportContext, CancellationToken)
AddQueryStringMapping(MediaTypeFormatter, String, String, MediaTypeHeaderValue)
AddQueryStringMapping(MediaTypeFormatter, String, String, String)
AddRequestHeaderMapping(MediaTypeFormatter, String, String, StringComparison, Boolean, MediaTypeHeaderValue)
AddRequestHeaderMapping(MediaTypeFormatter, String, String, StringComparison, Boolean, String)
AddUriPathExtensionMapping(MediaTypeFormatter, String, MediaTypeHeaderValue)
AddUriPathExtensionMapping(MediaTypeFormatter, String, String)
net7.0
namespace System.Net.Http.Formatting
{
public abstract class MediaTypeFormatter : Object
{
public virtual Task WriteToStreamAsync(Type type, ? value, Stream writeStream, HttpContent content, TransportContext transportContext);
}
}
NetFx Compat Lab | 0.8 %
Reference this API |
---|---|
nuget.org | 0.1 %
Reference this API |
Upgrade Planner | 0.1 %
Reference this API |
.NET | 5.06.07.08.09.010.0 |
.NET Core | 1.01.12.02.12.23.03.1 |
.NET Framework | 4.54.5.14.5.24.64.6.14.6.24.74.7.14.7.24.84.8.1 |
.NET Standard | 1.31.41.51.62.02.1 |
Information specific to net7.0 | |
Assembly | System.Net.Http.Formatting , Version=6.0.0.0, PublicKeyToken=31bf3856ad364e35 |
Referencing | Your project needs a package reference to |
Package | Microsoft.AspNet.WebApi.Client (6.0.0) netstandard2.0 |
Platform Restrictions | This API is supported on all platforms. |
- Built-in API
- Package-provided API