ManagedPropertyCollection.Contains method (String)

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

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 ManagedPropertyCollection
Dim name As String
Dim returnValue As Boolean

returnValue = instance.Contains(name)
public 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 the ManagedPropertyCollection class contains the specified ManagedProperty; otherwise, false.

See also

Reference

ManagedPropertyCollection class

ManagedPropertyCollection members

Contains overload

Microsoft.Office.Server.Search.Administration namespace