Interface IAssociateCollection
Assembly: MESL.SqlRace.Domain.dll
Syntax
public interface IAssociateCollection : ICollection<SessionKey>, IEnumerable<SessionKey>, IEnumerable
Properties
Item[Int32]
Declaration
SessionKey this[int index] { get; set; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Property Value
Methods
AddAssociateSession(SessionKey, String, String, Int32)
Adds an associate session and rgisters the association into database
Declaration
void AddAssociateSession(SessionKey newItem, string associateName, string associateGroup, int versionNumber)
Parameters
Type |
Name |
Description |
SessionKey |
newItem |
The new item
|
System.String |
associateName |
The association name
|
System.String |
associateGroup |
The association group
|
System.Int32 |
versionNumber |
The version number of the association
|
AsNewList()
Returns a copy of the contents of this collection
Declaration
IList<SessionKey> AsNewList()
Returns
Type |
Description |
System.Collections.Generic.IList<SessionKey> |
|
GetAssociatedSessionVersion(SessionKey)
Get the version of the associate session with the given key.
Declaration
string GetAssociatedSessionVersion(SessionKey sessionKey)
Parameters
Returns
Type |
Description |
System.String |
|
IndexOf(SessionKey)
Declaration
int IndexOf(SessionKey item)
Parameters
Returns
Type |
Description |
System.Int32 |
|
Insert(Int32, SessionKey)
Declaration
void Insert(int index, SessionKey item)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
SessionKey |
item |
|
RemoveAt(Int32)
Declaration
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Events
ItemAdded
Event fired when an item is added to the
Declaration
event EventHandler<ItemEventArgs> ItemAdded
Event Type
ItemRemoved
Event Fired when an item is removed from the Associate collection
Declaration
event EventHandler<ItemEventArgs> ItemRemoved
Event Type