XmlMediaTypeFormatter.GetSerializer Method (Type, Object, HttpContent)

 

Called during serialization to get the XML serializer to use for serializing objects.

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

Syntax

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

Parameters

  • type
    Type: System.Type

    The type of object to serialize.

Return Value

Type: System.Object

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

See Also

XmlMediaTypeFormatter Class
System.Net.Http.Formatting Namespace

Return to top