共用方式為


SfcListCollection<T, K, ParentT>.Contains 方法 (K)

Determines whether an element is in the list collection.

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

語法

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

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

參數

  • key
    型別:K
    The object to locate in the list collection.

傳回值

型別:System.Boolean
true if the element is found in the list; otherwise, false.

請參閱

參考

SfcListCollection<T, K, ParentT> 類別

Contains 多載

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