Bagikan melalui


ContractualRulesTextAttribution Class

Definition

Defines a contractual rule for text attribution.

[Newtonsoft.Json.JsonObject("ContractualRules/TextAttribution")]
public class ContractualRulesTextAttribution : Microsoft.Azure.CognitiveServices.Search.EntitySearch.Models.ContractualRulesAttribution
[<Newtonsoft.Json.JsonObject("ContractualRules/TextAttribution")>]
type ContractualRulesTextAttribution = class
    inherit ContractualRulesAttribution
Public Class ContractualRulesTextAttribution
Inherits ContractualRulesAttribution
Inheritance
Attributes
Newtonsoft.Json.JsonObjectAttribute

Constructors

ContractualRulesTextAttribution()

Initializes a new instance of the ContractualRulesTextAttribution class.

ContractualRulesTextAttribution(String, String, Nullable<Boolean>, Nullable<Boolean>)

Initializes a new instance of the ContractualRulesTextAttribution class.

Properties

MustBeCloseToContent

Gets a Boolean value that determines whether the contents of the rule must be placed in close proximity to the field that the rule applies to. If true, the contents must be placed in close proximity. If false, or this field does not exist, the contents may be placed at the caller's discretion.

(Inherited from ContractualRulesAttribution)
OptionalForListDisplay

Gets indicates whether this provider's attribution is optional.

TargetPropertyName

Gets the name of the field that the rule applies to.

(Inherited from ContractualRulesContractualRule)
Text

Gets or sets the attribution text. Text attribution applies to the entity as a whole and should be displayed immediately following the entity presentation. If there are multiple text or link attribution rules that do not specify a target, you should concatenate them and display them using a "Data from:" label.

Methods

Validate()

Validate the object.

Applies to