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.StringA string specifying the name of the category.
Return value
Type: System.Boolean
true indicates the CategoryCollection class contains the specified Category; otherwise, false.