SynonymCollection.GetSynonym Method
Retrieves the synonym of the keyword for a specified term.
Namespace: Microsoft.SharePoint.Search.Extended.Administration.Keywords
Assembly: Microsoft.SharePoint.Search.Extended.Administration (in Microsoft.SharePoint.Search.Extended.Administration.dll)
Syntax
'Declaration
Function GetSynonym ( _
synonym As String _
) As Synonym
'Usage
Dim instance As SynonymCollection
Dim synonym As String
Dim returnValue As Synonym
returnValue = instance.GetSynonym(synonym)
Synonym GetSynonym(
string synonym
)
Parameters
synonym
Type: System.StringThe synonym term.
Return Value
Type: Microsoft.SharePoint.Search.Extended.Administration.Keywords.Synonym
The Synonym with the given term exists for the keyword, [null] otherwise
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | If the synonym name is [null]. |
See Also
Reference
Microsoft.SharePoint.Search.Extended.Administration.Keywords Namespace