ModelItemDictionary.ICollection<KeyValuePair<ModelItem, ModelItem>>.Contains Method

For a description of this member, see ICollection<T>.Contains.

Namespace:  Microsoft.Windows.Design.Model
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Private Function Contains ( _
    item As KeyValuePair(Of ModelItem, ModelItem) _
) As Boolean Implements ICollection(Of KeyValuePair(Of ModelItem, ModelItem)).Contains
'Usage
Dim instance As ModelItemDictionary
Dim item As KeyValuePair(Of ModelItem, ModelItem)
Dim returnValue As Boolean

returnValue = CType(instance, ICollection(Of KeyValuePair(Of ModelItem, ModelItem))).Contains(item)
bool ICollection<KeyValuePair<ModelItem, ModelItem>>.Contains(
    KeyValuePair<ModelItem, ModelItem> item
)
private:
virtual bool Contains(
    KeyValuePair<ModelItem^, ModelItem^> item
) sealed = ICollection<KeyValuePair<ModelItem^, ModelItem^>>::Contains
JScript does not support explicit interface implementations.

Parameters

Return Value

Type: System.Boolean

true if item is found in the collection; otherwise, false.

Implements

ICollection<T>.Contains(T)

Remarks

This member is an explicit interface member implementation. It can be used only when the ModelItemDictionary instance is cast to an ICollection<T> interface.

Permissions

See Also

Concepts

WPF Designer Extensibility Architecture

Reference

ModelItemDictionary Class

ModelItemDictionary Members

Microsoft.Windows.Design.Model Namespace