返回一个布尔值,该值指示托管属性的集合中是否包含特定的ManagedProperty对象。
命名空间: 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 ManagedPropertyCollection
Dim name As String
Dim returnValue As Boolean
returnValue = instance.Contains(name)
public bool Contains(
string name
)
参数
name
类型:System.String一个字符串,指定的托管属性的名称。
返回值
类型:System.Boolean
true表示ManagedPropertyCollection类包含指定的ManagedProperty;否则为false。