BufferedMediaTypeFormatter.OnWriteToStream Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Namespace: System.Net.Http.Formatting
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Syntax
'Declaration
Protected Overridable Sub OnWriteToStream ( _
type As Type, _
value As Object, _
stream As Stream, _
contentHeaders As HttpContentHeaders, _
formatterContext As FormatterContext, _
transportContext As TransportContext _
)
protected virtual void OnWriteToStream(
Type type,
Object value,
Stream stream,
HttpContentHeaders contentHeaders,
FormatterContext formatterContext,
TransportContext transportContext
)
protected:
virtual void OnWriteToStream(
Type^ type,
Object^ value,
Stream^ stream,
HttpContentHeaders^ contentHeaders,
FormatterContext^ formatterContext,
TransportContext^ transportContext
)
abstract OnWriteToStream :
type:Type *
value:Object *
stream:Stream *
contentHeaders:HttpContentHeaders *
formatterContext:FormatterContext *
transportContext:TransportContext -> unit
override OnWriteToStream :
type:Type *
value:Object *
stream:Stream *
contentHeaders:HttpContentHeaders *
formatterContext:FormatterContext *
transportContext:TransportContext -> unit
protected function OnWriteToStream(
type : Type,
value : Object,
stream : Stream,
contentHeaders : HttpContentHeaders,
formatterContext : FormatterContext,
transportContext : TransportContext
)
Parameters
- type
Type: System.Type
- value
Type: System.Object
- stream
Type: System.IO.Stream
- contentHeaders
Type: System.Net.Http.Headers.HttpContentHeaders
- formatterContext
Type: System.Net.Http.Formatting.FormatterContext
- transportContext
Type: System.Net.TransportContext
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.