Share via


XmlMediaTypeFormatter.GetDeserializer Method (Type, HttpContent)

 

Called during deserialization to get the XML serializer to use for deserializing objects.

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

Syntax

protected internal virtual object GetDeserializer(
    Type type,
    HttpContent content
)
public protected:
virtual Object^ GetDeserializer(
    Type^ type,
    HttpContent^ content
)
abstract GetDeserializer : 
        type:Type *
        content:HttpContent -> Object
override GetDeserializer : 
        type:Type *
        content:HttpContent -> Object
Protected Friend Overridable Function GetDeserializer (
    type As Type,
    content As HttpContent
) As Object

Parameters

  • type
    Type: System.Type

    The type of object to deserialize.

Return Value

Type: System.Object

An instance of XmlObjectSerializer or XmlSerializer to use for deserializing the object.

See Also

XmlMediaTypeFormatter Class
System.Net.Http.Formatting Namespace

Return to top