ModelMemberCollection<TItemType, TKeyType> Class

Represents a collection for model members.

Inheritance Hierarchy

System.Object
  Microsoft.Windows.Design.Model.ModelMemberCollection<TItemType, TKeyType>
    Microsoft.Windows.Design.Model.ModelEventCollection
    Microsoft.Windows.Design.Model.ModelPropertyCollection

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

Syntax

'Declaration
Public MustInherit Class ModelMemberCollection(Of TItemType, TKeyType As {Object, IEquatable(Of TKeyType)}) _
    Implements IEnumerable(Of TItemType), IEnumerable
public abstract class ModelMemberCollection<TItemType, TKeyType> : IEnumerable<TItemType>, 
    IEnumerable
where TKeyType : Object, IEquatable<TKeyType>
generic<typename TItemType, typename TKeyType>
where TKeyType : Object, IEquatable<TKeyType>
public ref class ModelMemberCollection abstract : IEnumerable<TItemType>, 
    IEnumerable
[<AbstractClass>]
type ModelMemberCollection<'TItemType, 'TKeyType when 'TKeyType : Object and IEquatable<'TKeyType>> =  
    class
        interface IEnumerable<'TItemType>
        interface IEnumerable
    end
JScript does not support generic types or methods.

Type Parameters

  • TItemType
    The type of item the collection represents.
  • TKeyType

The ModelMemberCollection<TItemType, TKeyType> type exposes the following members.

Properties

  Name Description
Public property Item[String] Searches the collection for an item with the specified key and returns it if it is found.
Public property Item[TKeyType] Searches the collection for an item with the specified key and returns it if it is found.

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Find(String) Searches the collection for an item with the specified key and returns it if it is found.
Public method Find(TKeyType) Searches the collection for an item with the specified key and returns it if it is found.
Protected method Find(String, Boolean) When overridden in a derived class, searches the collection for an item with the specified key and returns it if it is found.
Protected method Find(TKeyType, Boolean) When overridden in a derived class, searches the collection for an item with the specified key and returns it if it is found.
Public method GetEnumerator When overridden in a derived class, returns an enumerator to enumerate items.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Infrastructure. For a description of this member, see IEnumerable.GetEnumerator.

Top

Remarks

ModelMemberCollection<TItemType, TKeyType> is an abstract base class that ModelPropertyCollection and ModelEventCollection derive from.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Windows.Design.Model Namespace

Other Resources

WPF Designer Extensibility