BaseJsonMediaTypeFormatter::WriteToStream Method (Type^, Object^, Stream^, Encoding^)

 

Called during serialization to write an object of the specified type to the specified 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,
	Encoding^ effectiveEncoding
)

Parameters

type
Type: System::Type^

The type of the object to write.

value
Type: System::Object^

The object to write.

writeStream
Type: System.IO::Stream^

The stream to write to.

effectiveEncoding
Type: System.Text::Encoding^

The encoding to use when writing.

Return to top
Show: