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.