Bagikan melalui


Entities Constructors

Definition

Overloads

Entities()

Initializes a new instance of the Entities class.

Entities(IList<Thing>, String, IList<ContractualRulesContractualRule>, String, QueryContext, String)

Initializes a new instance of the Entities class.

Entities()

Initializes a new instance of the Entities class.

public Entities ();
Public Sub New ()

Applies to

Entities(IList<Thing>, String, IList<ContractualRulesContractualRule>, String, QueryContext, String)

Initializes a new instance of the Entities class.

public Entities (System.Collections.Generic.IList<Microsoft.Azure.CognitiveServices.Search.EntitySearch.Models.Thing> value, string id = default, System.Collections.Generic.IList<Microsoft.Azure.CognitiveServices.Search.EntitySearch.Models.ContractualRulesContractualRule> contractualRules = default, string webSearchUrl = default, Microsoft.Azure.CognitiveServices.Search.EntitySearch.Models.QueryContext queryContext = default, string queryScenario = default);
new Microsoft.Azure.CognitiveServices.Search.EntitySearch.Models.Entities : System.Collections.Generic.IList<Microsoft.Azure.CognitiveServices.Search.EntitySearch.Models.Thing> * string * System.Collections.Generic.IList<Microsoft.Azure.CognitiveServices.Search.EntitySearch.Models.ContractualRulesContractualRule> * string * Microsoft.Azure.CognitiveServices.Search.EntitySearch.Models.QueryContext * string -> Microsoft.Azure.CognitiveServices.Search.EntitySearch.Models.Entities
Public Sub New (value As IList(Of Thing), Optional id As String = Nothing, Optional contractualRules As IList(Of ContractualRulesContractualRule) = Nothing, Optional webSearchUrl As String = Nothing, Optional queryContext As QueryContext = Nothing, Optional queryScenario As String = Nothing)

Parameters

value
IList<Thing>

A list of entities.

id
String

A String identifier.

contractualRules
IList<ContractualRulesContractualRule>

A list of rules that you must adhere to if you display the item.

webSearchUrl
String

The URL To Bing's search result for this item.

queryContext
QueryContext
queryScenario
String

The supported query scenario. This field is set to DominantEntity or DisambiguationItem. The field is set to DominantEntity if Bing determines that only a single entity satisfies the request. For example, a book, movie, person, or attraction. If multiple entities could satisfy the request, the field is set to DisambiguationItem. For example, if the request uses the generic title of a movie franchise, the entity's type would likely be DisambiguationItem. But, if the request specifies a specific title from the franchise, the entity's type would likely be DominantEntity. Possible values include: 'DominantEntity', 'DominantEntityWithDisambiguation', 'Disambiguation', 'List', 'ListWithPivot'

Applies to