Share via


Keyword.AddSynonym Method (String)

Adds a two-way synonym for the keyword.

Namespace:  Microsoft.SharePoint.Search.Extended.Administration.Keywords
Assembly:  Microsoft.SharePoint.Search.Extended.Administration (in Microsoft.SharePoint.Search.Extended.Administration.dll)

Syntax

'Declaration
Function AddSynonym ( _
    synonymTerm As String _
) As Synonym
'Usage
Dim instance As Keyword
Dim synonymTerm As String
Dim returnValue As Synonym

returnValue = instance.AddSynonym(synonymTerm)
Synonym AddSynonym(
    string synonymTerm
)

Parameters

  • synonymTerm
    Type: System.String

    The term of the synonym to be added.

Return Value

Type: Microsoft.SharePoint.Search.Extended.Administration.Keywords.Synonym
A Synonym representing the added synonym.

Exceptions

Exception Condition
AdminException

if a synonym with this term/phrase already exists for this keyword.

See Also

Reference

Keyword Interface

Keyword Members

AddSynonym Overload

Microsoft.SharePoint.Search.Extended.Administration.Keywords Namespace