Freigeben über


BsonMediaTypeFormatter.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 override void WriteToStream(
    Type type,
    object value,
    Stream writeStream,
    Encoding effectiveEncoding
)
public:
virtual void WriteToStream(
    Type^ type,
    Object^ value,
    Stream^ writeStream,
    Encoding^ effectiveEncoding
) override
override WriteToStream : 
        type:Type *
        value:Object *
        writeStream:Stream *
        effectiveEncoding:Encoding -> unit
Public Overrides 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

BsonMediaTypeFormatter Class
System.Net.Http.Formatting Namespace

Return to top