共用方式為


ModelComponentCollection.IModelComponentCollection.Contains 方法

Indicates whether the collection contains a specific value.

命名空間:  Microsoft.AnalysisServices
組件:  Microsoft.AnalysisServices (在 Microsoft.AnalysisServices.dll 中)

語法

'宣告
Private Function Contains ( _
    item As IModelComponent _
) As Boolean Implements IModelComponentCollection.Contains
'用途
Dim instance As ModelComponentCollection 
Dim item As IModelComponent 
Dim returnValue As Boolean 

returnValue = CType(instance, IModelComponentCollection).Contains(item)
bool IModelComponentCollection.Contains(
    IModelComponent item
)
private:
virtual bool Contains(
    IModelComponent^ item
) sealed = IModelComponentCollection::Contains
private abstract Contains : 
        item:IModelComponent -> bool  
private override Contains : 
        item:IModelComponent -> bool
JScript 支援明確介面實作的使用,但不支援新介面實作的宣告。

參數

傳回值

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

實作

IModelComponentCollection.Contains(IModelComponent)

請參閱

參考

ModelComponentCollection 類別

Microsoft.AnalysisServices 命名空間