Share via


ContentSourceCollection.Exists Method (String)

Returns a Boolean value that indicates whether the specified content source exists in the collection.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Function Exists ( _
    name As String _
) As Boolean
'Usage
Dim instance As ContentSourceCollection
Dim name As String
Dim returnValue As Boolean

returnValue = instance.Exists(name)
public bool Exists(
    string name
)

Parameters

  • name
    Type: System.String

    A string that contains the name of the content source.

Return Value

Type: System.Boolean
true if the content source exists; otherwise, false.

See Also

Reference

ContentSourceCollection Class

ContentSourceCollection Members

Exists Overload

Microsoft.Office.Server.Search.Administration Namespace