你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SimpleFieldAttribute 类

定义

使用基元类型或基元类型的集合来特性简单字段。

[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public class SimpleFieldAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type SimpleFieldAttribute = class
    inherit Attribute
Public Class SimpleFieldAttribute
Inherits Attribute
继承
SimpleFieldAttribute
派生
属性

构造函数

SimpleFieldAttribute()

使用基元类型或基元类型的集合来特性简单字段。

属性

IsFacetable

获取或设置一个值,该值指示是否可以在分面查询中检索字段。 默认值为 false。

IsFilterable

获取或设置一个值,该值指示是否可以在查询中 $filter 引用字段。 默认值为 false。

IsHidden

获取或设置字段是否在搜索结果中返回。 默认值为 false。 为 true 的 IsKey 键字段必须将此属性设置为 false。

IsKey

获取或设置字段是否为键字段。 默认值为 false。 SearchIndex必须恰好有一个 类型String为 的键字段。

IsSortable

获取或设置一个值,该值指示是否可以在表达式中 $orderby 引用字段。 默认值为 false。

NormalizerName

要用于字段的规范化器的名称。 此选项只能与启用了可筛选、可排序或可分面的字段一起使用。 选择规范化器后,无法更改字段的规范化程序。 对于复杂字段,必须为 null。

适用于