RecognizedPhrase.ConstructSmlFromSemantics Méthode

Définition

Retourne un document SML (Semantic Markup Language) pour les informations sémantiques dans l’objet RecognizedPhrase .

public:
 System::Xml::XPath::IXPathNavigable ^ ConstructSmlFromSemantics();
public System.Xml.XPath.IXPathNavigable ConstructSmlFromSemantics();
member this.ConstructSmlFromSemantics : unit -> System.Xml.XPath.IXPathNavigable
Public Function ConstructSmlFromSemantics () As IXPathNavigable

Retours

Retourne une description SML de la sémantique de l’objet RecognizedPhrase navigable XPath .

Exemples

Dans l’exemple suivant, une méthode retourne une chaîne qui contient le SML pour la sémantique d’une expression reconnue.

private string GetSemanticsSML(RecognizedPhrase result)
{
  if (result.Semantics.Count > 0)
  {
    return result.ConstructSmlFromSemantics().CreateNavigator().OuterXml;
  }
  else
  {
    return null;
  }
}

Remarques

Pour plus d’informations sur le langage de balisage sémantique (SML), consultez la référence du langage de balisage sémantique.

S’applique à