CategoryCollection.Contains 方法 (String) (Microsoft.Office.Server.Search.Administration)
Returns a Boolean value that indicates whether the collection of categories contains the Category object with the specified name.
命名空间: Microsoft.Office.Server.Search.Administration
程序集: Microsoft.Office.Server.Search (在 microsoft.office.server.search.dll 中)
语法
声明
Public Function Contains ( _
name As String _
) As Boolean
用法
Dim instance As CategoryCollection
Dim name As String
Dim returnValue As Boolean
returnValue = instance.Contains(name)
public bool Contains (
string name
)
参数
- name
A string specifying the name of the category.
返回值
true indicates the CategoryCollection class contains the specified Category; otherwise, false.
另请参阅
参考
CategoryCollection 类
CategoryCollection 成员
Microsoft.Office.Server.Search.Administration 命名空间