Show / Hide Table of Contents

Interface IAssociateCollection

Namespace: MESL.SqlRace.Domain.Collections
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
Type Description
MAT.OCS.Core.SessionKey

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
MAT.OCS.Core.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<MAT.OCS.Core.SessionKey>

GetAssociatedSessionVersion(SessionKey)

Get the version of the associate session with the given key.

Declaration
string GetAssociatedSessionVersion(SessionKey sessionKey)
Parameters
Type Name Description
MAT.OCS.Core.SessionKey sessionKey
Returns
Type Description
System.String

IndexOf(SessionKey)

Declaration
int IndexOf(SessionKey item)
Parameters
Type Name Description
MAT.OCS.Core.SessionKey item
Returns
Type Description
System.Int32

Insert(Int32, SessionKey)

Declaration
void Insert(int index, SessionKey item)
Parameters
Type Name Description
System.Int32 index
MAT.OCS.Core.SessionKey item

RemoveAt(Int32)

Declaration
void RemoveAt(int index)
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
Type Description
System.EventHandler<ItemEventArgs>

ItemRemoved

Event Fired when an item is removed from the Associate collection

Declaration
event EventHandler<ItemEventArgs> ItemRemoved
Event Type
Type Description
System.EventHandler<ItemEventArgs>
Back to top Generated by DocFX