IUccSessionParticipantCollectionEvent 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 the events as defined in the _IUccSessionParticipantCollectionEvents interface.

Namespace: Microsoft.Office.Interop.UccApi
Assembly: Microsoft.Office.Interop.UccApi (in microsoft.office.interop.uccapi.dll)

Syntax

'Declaration
Public Interface IUccSessionParticipantCollectionEvent
    Inherits IUnknown
public interface IUccSessionParticipantCollectionEvent : IUnknown
public interface class IUccSessionParticipantCollectionEvent : IUnknown
public interface IUccSessionParticipantCollectionEvent extends IUnknown
public interface IUccSessionParticipantCollectionEvent extends IUnknown

Remarks

Win32 COM/C++ Syntax

interface IUccSessionParticipantCollectionEvent : IUnknown

Example

The following example uses the Participant and Context properties of the IUccSessionParticipantCollectionEvent to display information about the newly added participant.

void _IUccSessionParticipantCollectionEvents.OnParticipantAdded(
    IUccSession pEventSource, 
    UccSessionParticipantCollectionEvent pEventData)
{
    IUccSessionParticipant p = pEventData.Participant;
    UccContext ctx = pEventData.Context;
    if (ctx.IsNamedPropertySet("UserNickname"))
    {
        Console.WriteLine(
            ctx.get_NamedProperty("UserNickname").StringValue +
            " at " +
            p.Uri.Host +
                " added to the session");
    }
    else
    {
        Console.WriteLine(
            p.Uri.UserAtHost +
            " added to the session");
    }

}

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

IUccSessionParticipantCollectionEvent Members
Microsoft.Office.Interop.UccApi Namespace