Templates.ParseResource Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.