共用方式為


Contains 方法 (T)

Determines whether the collection contains the specified object. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。

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

語法

'宣告
Public MustOverride Function Contains ( _
    obj As T _
) As Boolean
'用途
Dim instance As SfcCollection
Dim obj As T
Dim returnValue As Boolean

returnValue = instance.Contains(obj)
public abstract bool Contains(
    T obj
)
public:
virtual bool Contains(
    T obj
) abstract
abstract Contains : 
        obj:'T -> bool 
public abstract function Contains(
    obj : T
) : boolean

參數

  • obj
    型別:T
    The object to find.

傳回值

型別:System. . :: . .Boolean
true if the collection contains the object; otherwise, false.

實作

ICollection< (Of < ( <'T> ) > ) >. . :: . .Contains(T)