共用方式為


Contains 方法 (K)

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

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

語法

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

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

參數

  • key
    型別:K
    The key to find.

傳回值

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