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.
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
synonym
Type: System.StringThe synonym name.
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
Microsoft.SharePoint.Search.Extended.Administration.Keywords Namespace