SearchServiceApplication.GetSynonym 方法
检索与指定的KeyWord指定的Synonym 。
命名空间: Microsoft.Office.Server.Search.Administration
程序集: Microsoft.Office.Server.Search(位于 Microsoft.Office.Server.Search.dll 中)
语法
声明
Public Function GetSynonym ( _
term As String, _
parentSpecialTerm As Keyword _
) As Synonym
用法
Dim instance As SearchServiceApplication
Dim term As String
Dim parentSpecialTerm As Keyword
Dim returnValue As Synonym
returnValue = instance.GetSynonym(term, _
parentSpecialTerm)
public Synonym GetSynonym(
string term,
Keyword parentSpecialTerm
)
参数
term
类型:System.StringSynonym所需的术语。
parentSpecialTerm
类型:Microsoft.Office.Server.Search.Administration.Keyword指定的KeyWord。
返回值
类型:Microsoft.Office.Server.Search.Administration.Synonym
同义词。
实现
ISearchSiteAdministrationServiceApplication.GetSynonym(String, Keyword)
备注
术语参数的值必须不 null 。
ParentSpecialTerm参数的值必须不 null 。