Share via


ManagedPropertyCollection.Contains Method

Returns a Boolean value that indicates whether the collection of managed properties contains a specific managed property.

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 ManagedPropertyCollection
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 managed property.

Return Value

Type: System.Boolean
[true] indicates that the ManagedPropertyCollection class contains the specified managed property; otherwise, [false].

See Also

Reference

ManagedPropertyCollection Interface

ManagedPropertyCollection Members

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