Templates.ParseText 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.
Caution
This method will soon be deprecated. Use ParseResource instead.
Parser to turn lg content into a Templates.
[System.Obsolete("This method will soon be deprecated. Use ParseResource instead.")]
public static Microsoft.Bot.Builder.LanguageGeneration.Templates ParseText (string content, string id = "", Microsoft.Bot.Builder.LanguageGeneration.ImportResolverDelegate importResolver = default, AdaptiveExpressions.ExpressionParser expressionParser = default);
[<System.Obsolete("This method will soon be deprecated. Use ParseResource instead.")>]
static member ParseText : string * string * Microsoft.Bot.Builder.LanguageGeneration.ImportResolverDelegate * AdaptiveExpressions.ExpressionParser -> Microsoft.Bot.Builder.LanguageGeneration.Templates
Public Shared Function ParseText (content As String, Optional id As String = "", Optional importResolver As ImportResolverDelegate = Nothing, Optional expressionParser As ExpressionParser = Nothing) As Templates
Parameters
- content
- String
Text content contains lg templates.
- id
- String
Id is the identifier of content. If importResolver is null, id must be a full path string.
- importResolver
- ImportResolverDelegate
Resolver to resolve LG import id to template text.
- expressionParser
- ExpressionParser
Expression parser engine for parsing expressions.
Returns
new Templates entity.
- Attributes