Device Monitoring Studio Server - TODO
Download Device Monitoring Studio Server Hide this button

ISessionCollection Interface

This interface is implemented by the session collection object.


interface ISessionCollection extends ${IDispatch} {
    // Properties
    ${Count}: number;
    [${Item}: number]: ${ISession};
public interface ISessionCollection : ${IDispatch}
    // Properties
    int ${Count} { get; set; }
    ${ISession} ${Item}[int Index] { get; set; }
struct ISessionCollection : IDispatch
    // Properties
    long ${Count};  // get set 
    ${ISessionPtr#ISession} ${Item}(_variant_t Index);  // get set 

ISessionCollection Properties


Count: number;
int Count { get; set; }
long Count;  // get set 

Returns the number of sessions in the collection.


[Item: number]: ${ISession};
${ISession} Item[int Index] { get; set; }
${ISessionPtr#ISession} Item(_variant_t Index);  // get set 

Returns the session from the collection. Index must be an integer number. In most languages, this method may be called using the array indexing operator.

Obtaining the first connected session:

$dms = New-Object -ComObject 'dmssrv.MonitoringSite'
$connections = $dms.Connections
$connection = $connections[0]
$session = $connection.Sessions[0]