CommandCollection.IList.Contains 方法
Indicates whether the collection contains a specific value.
命名空間: Microsoft.AnalysisServices
組件: Microsoft.AnalysisServices (在 Microsoft.AnalysisServices.dll 中)
語法
'宣告
Private Function Contains ( _
value As Object _
) As Boolean Implements IList.Contains
'用途
Dim instance As CommandCollection
Dim value As Object
Dim returnValue As Boolean
returnValue = CType(instance, IList).Contains(value)
bool IList.Contains(
Object value
)
private:
virtual bool Contains(
Object^ value
) sealed = IList::Contains
private abstract Contains :
value:Object -> bool
private override Contains :
value:Object -> bool
JScript 支援明確介面實作的使用,但不支援新介面實作的宣告。
參數
- value
型別:System.Object
The object to locate.
傳回值
型別:System.Boolean
true if the object is found in the collection; otherwise, false.