Share via


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
bool ICollection<KeyValuePair<ModelItem, ModelItem>>.Contains(
    KeyValuePair<ModelItem, ModelItem> item
)
private:
virtual bool Contains(
    KeyValuePair<ModelItem^, ModelItem^> item
) sealed = ICollection<KeyValuePair<ModelItem^, ModelItem^>>::Contains
private abstract Contains : 
        item:KeyValuePair<ModelItem, ModelItem> -> bool 
private override Contains : 
        item:KeyValuePair<ModelItem, ModelItem> -> bool 
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.

.NET Framework Security

See Also

Reference

ModelItemDictionary Class

Microsoft.Windows.Design.Model Namespace

Other Resources

WPF Designer Extensibility Architecture