Delen via


ContractualRulesTextAttribution Constructors

Definition

Overloads

ContractualRulesTextAttribution()

Initializes a new instance of the ContractualRulesTextAttribution class.

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

Initializes a new instance of the ContractualRulesTextAttribution class.

ContractualRulesTextAttribution()

Initializes a new instance of the ContractualRulesTextAttribution class.

public ContractualRulesTextAttribution ();
Public Sub New ()

Applies to

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

Initializes a new instance of the ContractualRulesTextAttribution class.

public ContractualRulesTextAttribution (string text, string targetPropertyName = default, bool? mustBeCloseToContent = default, bool? optionalForListDisplay = default);
new Microsoft.Azure.CognitiveServices.Search.EntitySearch.Models.ContractualRulesTextAttribution : string * string * Nullable<bool> * Nullable<bool> -> Microsoft.Azure.CognitiveServices.Search.EntitySearch.Models.ContractualRulesTextAttribution
Public Sub New (text As String, Optional targetPropertyName As String = Nothing, Optional mustBeCloseToContent As Nullable(Of Boolean) = Nothing, Optional optionalForListDisplay As Nullable(Of Boolean) = Nothing)

Parameters

text
String

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.

targetPropertyName
String

The name of the field that the rule applies to.

mustBeCloseToContent
Nullable<Boolean>

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.

optionalForListDisplay
Nullable<Boolean>

Indicates whether this provider's attribution is optional.

Applies to