DataContractJsonSerializer Constructor (Type, DataContractJsonSerializerSettings)

DataContractJsonSerializer Constructor (Type, DataContractJsonSerializerSettings)

[ 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 DataContractJsonSerializer class to serialize or deserialize an object of the specified type and serializer settings.

Namespace:  System.Runtime.Serialization.Json
Assembly:  System.ServiceModel.Web (in System.ServiceModel.Web.dll)

public DataContractJsonSerializer(
	Type type,
	DataContractJsonSerializerSettings settings
)

Parameters

type
Type: System.Type
The type of the instances that is serialized or deserialized.
settings
Type: System.Runtime.Serialization.Json.DataContractJsonSerializerSettings
The serializer settings for the JSON serializer.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft