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;
  }
}

S’applique à