Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Add a two-way synonym with the specified name and term to the collection.
Namespace: Microsoft.SharePoint.Search.Extended.Administration.Keywords
Assembly: Microsoft.SharePoint.Search.Extended.Administration (in Microsoft.SharePoint.Search.Extended.Administration.dll)
Syntax
'Declaration
Function AddSynonym ( _
synonym As String, _
term As String _
) As Synonym
'Usage
Dim instance As SynonymCollection
Dim synonym As String
Dim term As String
Dim returnValue As Synonym
returnValue = instance.AddSynonym(synonym, _
term)
Synonym AddSynonym(
string synonym,
string term
)
Parameters
synonym
Type: System.StringThe synonym name.
term
Type: System.StringThe synonym term.
Return Value
Type: Microsoft.SharePoint.Search.Extended.Administration.Keywords.Synonym
A Synonym representing the added synonym.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | If the synonym name is [null]. |
| AdminException | If the synonym name is already used by another synonym for the keyword. |
| AdminException | If the synonym name is already used by another keyword. |
See Also
Reference
Microsoft.SharePoint.Search.Extended.Administration.Keywords Namespace