Class CosmosSerializationOptions
This class provides a way to configure basic serializer settings.
public sealed class CosmosSerializationOptions
- Inheritance
-
CosmosSerializationOptions
- Inherited Members
- Extension Methods
Constructors
CosmosSerializationOptions()
Create an instance of CosmosSerializationOptions with the default values for the Cosmos SDK
public CosmosSerializationOptions()
Properties
IgnoreNullValues
Gets or sets if the serializer should ignore null properties
public bool IgnoreNullValues { get; set; }
Property Value
Remarks
The default value is false
Indented
Gets or sets if the serializer should use indentation
public bool Indented { get; set; }
Property Value
Remarks
The default value is false
PropertyNamingPolicy
Gets or sets whether the naming policy used to convert a string-based name to another format, such as a camel-casing format.
public CosmosPropertyNamingPolicy PropertyNamingPolicy { get; set; }
Property Value
Remarks
The default value is CosmosPropertyNamingPolicy.Default