BaseJsonMediaTypeFormatter::WriteToStreamAsync Method

 

BaseJsonMediaTypeFormatter::WriteToStreamAsync Method (Type^, Object^, Stream^, HttpContent^, TransportContext^, CancellationToken)

Called during serialization to write an object of the specified type to the specified stream.

public:
virtual Task^ WriteToStreamAsync(
	Type^ type,
	Object^ value,
	Stream^ writeStream,
	HttpContent^ content,
	TransportContext^ transportContext,
	CancellationToken cancellationToken
) override

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.

content
Type: System.Net.Http::HttpContent^

The HttpContent for the content being written.

transportContext
Type: System.Net::TransportContext^

The transport context.

cancellationToken
Type: System.Threading::CancellationToken

The token to monitor for cancellation.

Return Value

Type: System.Threading.Tasks::Task^

Returns Task.

Return to top
Show: