IUccSessionParticipantStateChangedEvent Interface
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
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)
Syntax
'Declaration
Public Interface IUccSessionParticipantStateChangedEvent
Inherits IUnknown
public interface IUccSessionParticipantStateChangedEvent : IUnknown
public interface class IUccSessionParticipantStateChangedEvent : IUnknown
public interface IUccSessionParticipantStateChangedEvent extends IUnknown
public interface IUccSessionParticipantStateChangedEvent extends IUnknown
Remarks
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
Example
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 ");
}
}
Platforms
Development Platforms
Windows XP Professional with Service Pack 2 (SP2), Windows Server 2000 with Service Pack 4, Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition
Target Platforms
See Also
Reference
IUccSessionParticipantStateChangedEvent Members
Microsoft.Office.Interop.UccApi Namespace