共用方式為


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.

請參閱

參考

IReadOnlyCollection<T> 介面

Microsoft.SqlServer.Management.Sdk.Sfc 命名空間