共用方式為


IClrCollectionAccessor.ContainsStandalone(Object, Object) 方法

定義

檢查值是否包含在傳遞的集合中。

public bool ContainsStandalone (object collection, object value);
abstract member ContainsStandalone : obj * obj -> bool
Public Function ContainsStandalone (collection As Object, value As Object) As Boolean

參數

collection
Object

集合。

value
Object

要檢查的值。

傳回

true 如果值包含在集合中則為 ; false 否則。

適用於