DataContractSerializer Constructor (Type, DataContractSerializerSettings)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of the DataContractSerializer class to serialize or deserialize an object of the specified type and settings.

Namespace:  System.Runtime.Serialization
Assembly:  System.Runtime.Serialization (in System.Runtime.Serialization.dll)

Syntax

Public Sub New ( _
    type As Type, _
    settings As DataContractSerializerSettings _
)
public DataContractSerializer(
    Type type,
    DataContractSerializerSettings settings
)

Parameters

  • type
    Type: System..::.Type
    The type of the instance to serialize or deserialize.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0

See Also

Reference

DataContractSerializer Class

DataContractSerializer Overload

System.Runtime.Serialization Namespace