Class SessionRepositoryExtendedAssociateCollection
The extended associate collection.
Inheritance
System.Object
SessionRepositoryExtendedAssociateCollection
Implements
System.Collections.Generic.ICollection<ExtendedAssociate>
System.Collections.Generic.IEnumerable<ExtendedAssociate>
System.Collections.IEnumerable
Namespace: MESL.SqlRace.Domain.Collections
Assembly: MESL.SqlRace.Domain.dll
Syntax
public class SessionRepositoryExtendedAssociateCollection : Collection<ExtendedAssociate>, IExtendedAssociateCollection, ICollection<ExtendedAssociate>, IEnumerable<ExtendedAssociate>, IEnumerable
Methods
AsNewList()
Create a new list of extended associates
Declaration
public IList<ExtendedAssociate> AsNewList()
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<ExtendedAssociate> | New list of extended associates |
ClearItems()
Clears all session GUIDs from the associates collection
Declaration
protected override void ClearItems()
InsertItem(Int32, ExtendedAssociate)
Inserts a new session GUID into the associates collection
Declaration
protected override void InsertItem(int index, ExtendedAssociate newItem)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index. |
ExtendedAssociate | newItem | The new item. |
RemoveItem(Int32)
Removes a session GUID from the associates collection
Declaration
protected override void RemoveItem(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index of the element to remove. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException |
|
SetItem(Int32, ExtendedAssociate)
Sets a session GUID in the associates collection
Declaration
protected override void SetItem(int index, ExtendedAssociate newItem)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index. |
ExtendedAssociate | newItem | The new item. |
Events
ItemAdded
Event fired when an item is added to the
Declaration
public event EventHandler<ItemEventArgs> ItemAdded
Event Type
Type | Description |
---|---|
System.EventHandler<ItemEventArgs> |
ItemRemoved
Event Fired when an item is removed from the ExtendedAssociate collection
Declaration
public event EventHandler<ItemEventArgs> ItemRemoved
Event Type
Type | Description |
---|---|
System.EventHandler<ItemEventArgs> |
Implements
System.Collections.Generic.ICollection<>
System.Collections.Generic.IEnumerable<>
System.Collections.IEnumerable