SerializePropertyNamesAsCamelCaseAttribute Clase

Definición

Indica que las propiedades públicas de un tipo de modelo se deben serializar como mayúsculas y minúsculas para que coincidan con los nombres de campo de un índice de búsqueda.

[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
Herencia
SerializePropertyNamesAsCamelCaseAttribute
Atributos

Comentarios

Se espera que los tipos sin este atributo tengan nombres de propiedad que coincidan exactamente con sus nombres de campos correspondientes en Azure Cognitive Search. De lo contrario, no sería posible usar instancias del tipo para rellenar el índice.

Constructores

SerializePropertyNamesAsCamelCaseAttribute()

Indica que las propiedades públicas de un tipo de modelo se deben serializar como mayúsculas y minúsculas para que coincidan con los nombres de campo de un índice de búsqueda.

Métodos

IsDefinedOnType(Type)

Indica si el tipo especificado está anotado con SerializePropertyNamesAsCamelCaseAttribute.

IsDefinedOnType<T>()

Indica si el tipo especificado está anotado con SerializePropertyNamesAsCamelCaseAttribute.

Se aplica a