共用方式為


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 Overrides Function Contains ( _
    obj As T _
) As Boolean
'用途
Dim instance As SfcCollatedDictionaryCollection
Dim obj As T
Dim returnValue As Boolean

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

參數

  • obj
    型別:T
    The object to find in the collection.

傳回值

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

實作

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