_IUccContainerMemberEvents 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.

Defines the events raised by an IUccContainerMember instance.

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

Syntax

'Declaration
Public Interface _IUccContainerMemberEvents
    Inherits IDispatch, IUnknown
public interface _IUccContainerMemberEvents : IDispatch, IUnknown
public interface class _IUccContainerMemberEvents : IDispatch, IUnknown
public interface _IUccContainerMemberEvents extends IDispatch, IUnknown
public interface _IUccContainerMemberEvents extends IDispatch, IUnknown

Remarks

A container member (IUccContainerMember) exposes the Containers property which is a collection of IUccContainer instances to which the container member belongs. When the container member is removed from a container, the Containers collection is updated to reflect the change. The OnContainerAdded and OnContainerRemoved events notify an application that this has taken place.

An application must implement this interface and advise an IUccContainerMember instance of the implementation to receive event notifications when a container member is added to or removed from a container. This is a dispinterface. Its members define the event handlers for the events raised by an IUccContainerMember object. To catch the events, a UCC API client must implement these event handlers and advise the event source of the implementation if it is interested in receiving the events. To prevent memory leaks, the client should unadvise the events when it is no longer interested in the events.

Win32 COM/C++ Syntax

dispinterface _IUccContainerMemberEvents

Example

The following example is an application class that implements the event handlers for container member events.

class ContainerMember:_IUccContainerMemberEvents
{
    void _IUccContainerMemberEvents.OnContainerAdded(
        IUccContainerMember pMember, 
        UccContainerMembershipEvent pEvent)
    {
    }

    void _IUccContainerMemberEvents.OnContainerRemoved(
        IUccContainerMember pMember, 
        UccContainerMembershipEvent pEvent)
    {
        if (this._containerIDs.Contains(pEvent.Container.Id))
        {
        }
    }
}

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

_IUccContainerMemberEvents Members
Microsoft.Office.Interop.UccApi Namespace