SearchServiceApplicationProxy.GetSynonym Method
Retrieves the specified synonym associated with the specified keyword.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Function GetSynonym ( _
term As String, _
parentSpecialTerm As Keyword _
) As Synonym
'Usage
Dim instance As SearchServiceApplicationProxy
Dim term As String
Dim parentSpecialTerm As Keyword
Dim returnValue As Synonym
returnValue = instance.GetSynonym(term, _
parentSpecialTerm)
public Synonym GetSynonym(
string term,
Keyword parentSpecialTerm
)
Parameters
term
Type: System.StringThe term of the required synonym.
parentSpecialTerm
Type: Microsoft.Office.Server.Search.Administration.KeywordThe specified keyword.
Return Value
Type: Microsoft.Office.Server.Search.Administration.Synonym
The synonym associated with the specified keyword.
Implements
ISearchSiteAdministrationServiceApplication.GetSynonym(String, Keyword)
Exceptions
Exception | Condition |
---|---|
SearchServiceApplicationFault | The synonym of the special term cannot be found in the Search administration database. |
Exception | An error occurred during application execution. |
Remarks
The value of the term parameter must not be null .
The value of the parentSpecialTerm parameter must not be null .
See Also
Reference
SearchServiceApplicationProxy Class