다음을 통해 공유


RecognizedPhrase.ConstructSmlFromSemantics 메서드

정의

개체의 의미 체계 정보에 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;
  }
}

적용 대상