Share via


Extensions.TryFindEntity(LuisResult, String, EntityRecommendation) Method

Definition

Try to find an entity within the result.

public static bool TryFindEntity (this Microsoft.Bot.Builder.Luis.Models.LuisResult result, string type, out Microsoft.Bot.Builder.Luis.Models.EntityRecommendation entity);
static member TryFindEntity : Microsoft.Bot.Builder.Luis.Models.LuisResult * string * EntityRecommendation -> bool
<Extension()>
Public Function TryFindEntity (result As LuisResult, type As String, ByRef entity As EntityRecommendation) As Boolean

Parameters

result
LuisResult

The LUIS result.

type
String

The entity type.

entity
EntityRecommendation

The found entity.

Returns

True if the entity was found, false otherwise.

Applies to