Keyword.AddSynonym Method (String, SynonymExpansionType)
Adds a new synonym of the specified expansion type 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, _
type As SynonymExpansionType _
) As Synonym
'Usage
Dim instance As Keyword
Dim synonymTerm As String
Dim type As SynonymExpansionType
Dim returnValue As Synonym
returnValue = instance.AddSynonym(synonymTerm, _
type)
Synonym AddSynonym(
string synonymTerm,
SynonymExpansionType type
)
Parameters
synonymTerm
Type: System.StringThe term of the synonym to be added.
type
Type: Microsoft.SharePoint.Search.Extended.Administration.Keywords.SynonymExpansionTypeThe expansion type of the synonym.
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
Microsoft.SharePoint.Search.Extended.Administration.Keywords Namespace