SerializePropertyNamesAsCamelCaseAttribute Class

Definition

Indicates that the public properties of a model type should be serialized as camel-case in order to match the field names of an Azure Search index.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Struct, AllowMultiple=false, Inherited=true)]
public class SerializePropertyNamesAsCamelCaseAttribute : Attribute
type SerializePropertyNamesAsCamelCaseAttribute = class
    inherit Attribute
Public Class SerializePropertyNamesAsCamelCaseAttribute
Inherits Attribute
Inheritance
SerializePropertyNamesAsCamelCaseAttribute
Attributes

Remarks

Types without this attribute are expected to have property names that exactly match their corresponding

fields names in Azure Search. Otherwise, it would not be possible to use instances of the type to populate

the index.

Constructors

SerializePropertyNamesAsCamelCaseAttribute()

Methods

IsDefinedOnType(Type)

Indicates whether the given type is annotated with SerializePropertyNamesAsCamelCaseAttribute.

IsDefinedOnType<T>()

Indicates whether the given type is annotated with SerializePropertyNamesAsCamelCaseAttribute.

Applies to