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