RecognizedPhrase.ConstructSmlFromSemantics Metodo

Definizione

Restituisce un documento SML (Semantic Markup Language) per le informazioni semantiche nell'oggetto 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

Restituisce

Restituisce una descrizione SML della semantica di RecognizedPhrase come oggetto esplorabile XPath.

Esempio

Nell'esempio seguente un metodo restituisce una stringa contenente SML per la semantica di una frase riconosciuta.

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

Commenti

Per informazioni sul linguaggio di markup semantico (SML), vedere Informazioni di riferimento sul linguaggio di markup semantico.

Si applica a