共用方式為


ModelItemCollection.IList.Contains 方法

如需這個成員的說明,請參閱 IList.Contains

命名空間:  Microsoft.Windows.Design.Model
組件:  Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)

語法

'宣告
Private Function Contains ( _
    value As Object _
) As Boolean Implements IList.Contains
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 不支援明確介面實作。

參數

傳回值

型別:System.Boolean
如果在 IList 中找到 Object,則為 true,否則為 false。

實作

IList.Contains(Object)

備註

這個成員是明確介面成員實作, 只有在 ModelItemCollection 執行個體轉換成 IList 介面時,才能使用這個成員。

.NET Framework 安全性

請參閱

參考

ModelItemCollection 類別

Microsoft.Windows.Design.Model 命名空間

其他資源

WPF 設計工具擴充性架構