Partager via


ContentSourceCollection.Exists, méthode (String) (Microsoft.Office.Server.Search.Administration)

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

Espace de noms : Microsoft.Office.Server.Search.Administration
Assembly : Microsoft.Office.Server.Search (dans microsoft.office.server.search.dll)

Syntaxe

'Déclaration
Public Function Exists ( _
    name As String _
) As Boolean
'Utilisation
Dim instance As ContentSourceCollection
Dim name As String
Dim returnValue As Boolean

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

Paramètres

  • name
    A string that contains the name of the content source.

Valeur de retour

true if the content source exists; otherwise, false.

Voir aussi

Référence

ContentSourceCollection, classe
Membres ContentSourceCollection
Microsoft.Office.Server.Search.Administration, espace de noms