IReadOnlyCollection<T>.Contains 方法
Determines whether the specified item is contained in the collection.
命名空间: Microsoft.SqlServer.Management.Sdk.Sfc
程序集: Microsoft.SqlServer.Management.Sdk.Sfc(在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)
语法
声明
Function Contains ( _
item As T _
) As Boolean
用法
Dim instance As IReadOnlyCollection
Dim item As T
Dim returnValue As Boolean
returnValue = instance.Contains(item)
bool Contains(
T item
)
bool Contains(
T item
)
abstract Contains :
item:'T -> bool
function Contains(
item : T
) : boolean
参数
- item
类型:T
The object to locate in the collection.
返回值
类型:System.Boolean
true if the item is found in the collection; otherwise, false.