Compartilhar via


Templates.ParseResource Método

Definição

Analisador para transformar o conteúdo lg em um 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

Parâmetros

resource
LGResource

Recurso LG.

importResolver
ImportResolverDelegate

Resolver para resolver a ID de importação LG para o texto do modelo.

expressionParser
ExpressionParser

Mecanismo do analisador de expressão para analisar expressões.

Retornos

nova Templates entidade.

Aplica-se a