ContentSourceCollection.Exists 方法 (String) (Microsoft.Office.Server.Search.Administration)

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

命名空间: Microsoft.Office.Server.Search.Administration
程序集: Microsoft.Office.Server.Search (在 microsoft.office.server.search.dll 中)

语法

声明
Public Function Exists ( _
    name As String _
) As Boolean
用法
Dim instance As ContentSourceCollection
Dim name As String
Dim returnValue As Boolean

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

参数

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

返回值

true if the content source exists; otherwise, false.

另请参阅

参考

ContentSourceCollection 类
ContentSourceCollection 成员
Microsoft.Office.Server.Search.Administration 命名空间