Freigeben über


BaseJsonMediaTypeFormatter.ReadFromStream Method (Type, Stream, Encoding, IFormatterLogger)

 

Called during deserialization to read an object of the specified type from the specified stream.

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

Syntax

public virtual object ReadFromStream(
    Type type,
    Stream readStream,
    Encoding effectiveEncoding,
    IFormatterLogger formatterLogger
)
public:
virtual Object^ ReadFromStream(
    Type^ type,
    Stream^ readStream,
    Encoding^ effectiveEncoding,
    IFormatterLogger^ formatterLogger
)
abstract ReadFromStream : 
        type:Type *
        readStream:Stream *
        effectiveEncoding:Encoding *
        formatterLogger:IFormatterLogger -> Object
override ReadFromStream : 
        type:Type *
        readStream:Stream *
        effectiveEncoding:Encoding *
        formatterLogger:IFormatterLogger -> Object
Public Overridable Function ReadFromStream (
    type As Type,
    readStream As Stream,
    effectiveEncoding As Encoding,
    formatterLogger As IFormatterLogger
) As Object

Parameters

  • type
    Type: System.Type

    The type of the object to read.

Return Value

Type: System.Object

The object that has been read.

See Also

BaseJsonMediaTypeFormatter Class
System.Net.Http.Formatting Namespace

Return to top