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)

Syntax

public virtual void WriteToStream(
    Type type,
    object value,
    Stream writeStream,
    Encoding effectiveEncoding
)
public:
virtual void WriteToStream(
    Type^ type,
    Object^ value,
    Stream^ writeStream,
    Encoding^ effectiveEncoding
)
abstract WriteToStream : 
        type:Type *
        value:Object *
        writeStream:Stream *
        effectiveEncoding:Encoding -> unit
override WriteToStream : 
        type:Type *
        value:Object *
        writeStream:Stream *
        effectiveEncoding:Encoding -> unit
Public Overridable Sub WriteToStream (
    type As Type,
    value As Object,
    writeStream As Stream,
    effectiveEncoding As Encoding
)

Parameters

  • type
    Type: System.Type

    The type of the object to write.

See Also

BaseJsonMediaTypeFormatter Class
System.Net.Http.Formatting Namespace

Return to top