FieldBuilderIgnoreAttribute クラス

定義

ターゲット プロパティを で FieldBuilder無視する必要があることを示します。

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

注釈

この属性は、プロパティ定義がオブジェクトにクリーンにマップ SearchField されないが、その値を JSON との間で変換する必要がある場合に便利です。 その場合は、 JsonIgnoreAttribute JSON 変換を無効にするため、 を使用できません。 これが役立つシナリオの例は、Azure Cognitive Searchの文字列フィールドと列挙型プロパティの間でマッピングする場合です。

コンストラクター

FieldBuilderIgnoreAttribute()

ターゲット プロパティを で FieldBuilder無視する必要があることを示します。

適用対象