Share via


CategoryCollection.Contains Method (String)

Returns a Boolean value that indicates whether the collection of crawled property categories contains a category with a specific name.

Namespace:  Microsoft.SharePoint.Search.Extended.Administration.Schema
Assembly:  Microsoft.SharePoint.Search.Extended.Administration (in Microsoft.SharePoint.Search.Extended.Administration.dll)

Syntax

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

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

Parameters

  • name
    Type: System.String

    A string that specifies the name of the category.

Return Value

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

See Also

Reference

CategoryCollection Interface

CategoryCollection Members

Contains Overload

Microsoft.SharePoint.Search.Extended.Administration.Schema Namespace