Share via


SynonymCollection.ContainsSynonym Method

Checks if a synonym with the specified term is contained in 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 ContainsSynonym ( _
    synonym As String _
) As Boolean
'Usage
Dim instance As SynonymCollection
Dim synonym As String
Dim returnValue As Boolean

returnValue = instance.ContainsSynonym(synonym)
bool ContainsSynonym(
    string synonym
)

Parameters

Return Value

Type: System.Boolean
[true] if the synonym with the specified term is contained in the collection, [false] otherwise.

Exceptions

Exception Condition
ArgumentNullException

If the synonym name is [null].

See Also

Reference

SynonymCollection Interface

SynonymCollection Members

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