RecognizedPhrase.ConstructSmlFromSemantics Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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;
}
}