BufferedMediaTypeFormatter.WriteToStream Method

Writes synchronously to the buffered stream.

Namespace:  System.Net.Http.Formatting
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

public virtual void WriteToStream(
	Type type,
	Object value,
	Stream writeStream,
	HttpContent content
)

Parameters

type
Type: System.Type

The type of the object to serialize.

value
Type: System.Object

The object value to write. Can be null.

writeStream
Type: System.IO.Stream

The stream to which to write.

content
Type: HttpContent

The HttpContent, if available. Can be null.

An implementation of this method should close stream upon completion.

Show: