Share via


CategoryCollection.Contains Method (String)

Returns a Boolean value that indicates whether the collection of categories contains the Category object with the specified name.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Function Contains ( _
    name As String _
) As Boolean
'Usage
Dim instance As CategoryCollection
Dim name As String
Dim returnValue As Boolean

returnValue = instance.Contains(name)
public bool Contains(
    string name
)

Parameters

  • name
    Type: System.String
    A string specifying the name of the category.

Return Value

Type: System.Boolean
true indicates the CategoryCollection class contains the specified Category; otherwise, false.

See Also

Reference

CategoryCollection Class

CategoryCollection Members

Contains Overload

Microsoft.Office.Server.Search.Administration Namespace