Share via


ManagedPropertyCollection.Contains Method

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

Microsoft.Office.Server.Search.Administration Namespace