Jaa


Templates.ParseResource Method

Definition

Parser to turn lg content into a Templates.

public static Microsoft.Bot.Builder.LanguageGeneration.Templates ParseResource (Microsoft.Bot.Builder.LanguageGeneration.LGResource resource, Microsoft.Bot.Builder.LanguageGeneration.ImportResolverDelegate importResolver = default, AdaptiveExpressions.ExpressionParser expressionParser = default);
static member ParseResource : Microsoft.Bot.Builder.LanguageGeneration.LGResource * Microsoft.Bot.Builder.LanguageGeneration.ImportResolverDelegate * AdaptiveExpressions.ExpressionParser -> Microsoft.Bot.Builder.LanguageGeneration.Templates
Public Shared Function ParseResource (resource As LGResource, Optional importResolver As ImportResolverDelegate = Nothing, Optional expressionParser As ExpressionParser = Nothing) As Templates

Parameters

resource
LGResource

LG resource.

importResolver
ImportResolverDelegate

Resolver to resolve LG import id to template text.

expressionParser
ExpressionParser

Expression parser engine for parsing expressions.

Returns

new Templates entity.

Applies to