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 | |
---|---|---|
Item[String] | Searches the collection for an item with the specified key and returns it if it is found. | |
Item[TKeyType] | Searches the collection for an item with the specified key and returns it if it is found. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
Find(String) | Searches the collection for an item with the specified key and returns it if it is found. | |
Find(TKeyType) | Searches the collection for an item with the specified key and returns it if it is found. | |
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. | |
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. | |
GetEnumerator | When overridden in a derived class, returns an enumerator to enumerate items. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
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