MobileServiceContractResolver.CreateProperties Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a collection of Newtonsoft.Json.Serialization.JsonProperty instances for the members of a given type.
protected override System.Collections.Generic.IList<Newtonsoft.Json.Serialization.JsonProperty> CreateProperties (Type type, Newtonsoft.Json.MemberSerialization memberSerialization);
override this.CreateProperties : Type * Newtonsoft.Json.MemberSerialization -> System.Collections.Generic.IList<Newtonsoft.Json.Serialization.JsonProperty>
Protected Overrides Function CreateProperties (type As Type, memberSerialization As MemberSerialization) As IList(Of JsonProperty)
Parameters
- type
- Type
The type for which to create the collection of Newtonsoft.Json.Serialization.JsonProperty instances.
- memberSerialization
- Newtonsoft.Json.MemberSerialization
Specifies the member serialization options for the type.
Returns
A collection of Newtonsoft.Json.Serialization.JsonProperty instances for the members of a given type.
Remarks
This method is overridden in order to handle the id property of the type. Because multiple property names ("id" with different casings) are all treated as the id property, we must ensure that there is one and only one id property for the type. Also, the id property should be ignored when it is the default or null value and it should always serialize to JSON with a lowercase 'id' name.
This method also checks for and applies and system property attributes.
Applies to
Azure SDK for .NET