共用方式為


SfcReferenceCollection<K, T, S>.Contains 方法

Determines whether this collection contains an element with the specified value.

命名空間:  Microsoft.SqlServer.Management.Sdk.Sfc
組件:  Microsoft.SqlServer.Management.Sdk.Sfc (在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)

語法

'宣告
Public Function Contains ( _
    item As T _
) As Boolean
'用途
Dim instance As SfcReferenceCollection 
Dim item As T
Dim returnValue As Boolean 

returnValue = instance.Contains(item)
public bool Contains(
    T item
)
public:
virtual bool Contains(
    T item
) sealed
abstract Contains : 
        item:'T -> bool  
override Contains : 
        item:'T -> bool
public final function Contains(
    item : T
) : boolean

參數

  • item
    型別:T
    The value to locate in the collection.

傳回值

型別:System.Boolean
true if the collection contains an element with the specified value; otherwise, false.

實作

IReadOnlyCollection<T>.Contains(T)

請參閱

參考

SfcReferenceCollection<K, T, S> 類別

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