다음을 통해 공유


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 a search index.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Struct, AllowMultiple=false, Inherited=true)]
public class SerializePropertyNamesAsCamelCaseAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Struct, AllowMultiple=false, Inherited=true)>]
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 Cognitive 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