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
item
Type: System.Collections.Generic.KeyValuePair<ModelItem, ModelItem>The key/value pair to locate in the collection.
Return Value
Type: System.Boolean
true if item is found in the collection; otherwise, false.
Implements
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Concepts
WPF Designer Extensibility Architecture