IUccSessionParticipantStateChangedEvent Interface
Represents the event data of events indicating a change of the state of a participant in a session.
Namespace: Microsoft.Office.Interop.UccApi
Assembly: Microsoft.Office.Interop.UccApi (in microsoft.office.interop.uccapi.dll)
Assembly: Microsoft.Office.Interop.UccApi (in microsoft.office.interop.uccapi.dll)
This is used to pass the result of a state-changing operation on a session participant in an OnStateChanged event. Typical state changing operations include accepting an invitation and connecting to a session, rejecting an invitation, and terminating participantion in an on-going session.
Win32 COM/C++ Syntax
interface IUccSessionParticipantStateChangedEvent : IUnknown
The following example notifies the local user using the system console when a remote invited user has accepted a session invitation and connected to a session.
/// <summary>
/// session participant state change event. Remote
/// session participants raise this event when state changes.
/// </summary>
/// <param name="pEventSource">participant source of event</param>
/// <param name="pEventData">state changed related data</param>
void _IUccSessionParticipantEvents.OnStateChanged(
IUccSessionParticipant pEventSource,
UccSessionParticipantStateChangedEvent pEventData)
{
if (pEventData.NewState == UCC_SESSION_ENTITY_STATE.UCCSES_CONNECTED)
{
Console.WriteLine(pEventSource.Uri.User +" is CONNECTED ");
}
}