Freigeben über


JsonMediaTypeFormatter.CreateDefaultSerializerSettings Method

Creates a JsonSerializerSettings instance with the default settings used by the JsonMediaTypeFormatter.

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

Syntax

'Declaration
Public Function CreateDefaultSerializerSettings As JsonSerializerSettings
'Usage
Dim instance As JsonMediaTypeFormatter 
Dim returnValue As JsonSerializerSettings 

returnValue = instance.CreateDefaultSerializerSettings()
public JsonSerializerSettings CreateDefaultSerializerSettings()
public:
JsonSerializerSettings^ CreateDefaultSerializerSettings()
member CreateDefaultSerializerSettings : unit -> JsonSerializerSettings
public function CreateDefaultSerializerSettings() : JsonSerializerSettings

Return Value

Type: JsonSerializerSettings
A newly created JsonSerializerSettings instance with the default settings used by the JsonMediaTypeFormatter.

See Also

Reference

JsonMediaTypeFormatter Class

System.Net.Http.Formatting Namespace