RecognizedPhrase.ConstructSmlFromSemantics メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
RecognizedPhrase オブジェクト内のセマンティック情報のセマンティック マークアップ言語 (SML) ドキュメントを返します。
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
返品
XPath ナビゲーション可能オブジェクトとしての RecognizedPhrase のセマンティクスの SML 記述を返します。
例
次の例では、認識された語句のセマンティクスの SML を含む文字列がメソッドから返されます。
private string GetSemanticsSML(RecognizedPhrase result)
{
if (result.Semantics.Count > 0)
{
return result.ConstructSmlFromSemantics().CreateNavigator().OuterXml;
}
else
{
return null;
}
}