Export (0) Print
Expand All

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

Encapsulates the event data of an incoming request event.

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

public interface IUccIncomingRequestEvent : IUnknown
public interface IUccIncomingRequestEvent extends IUnknown
public interface IUccIncomingRequestEvent extends IUnknown

This interface encapsulates the basic features common to all incoming session requests. An application can use this interface to examine the context of an incoming request and accept or reject the request as appropriate. Methods and properties of this interface should be accessed through the interface which implements IUccIncomingRequestEvent. For example, UccIncomingSessionEvent implements IUccIncomingRequestEvent and exposes all of the methods and properties of the interface.

Win32 COM/C++ Syntax

interface IUccIncomingRequestEvent : IUnknown

The following example handles an incoming session request. The UccIncomingSessionEvent interface instance implements IUccIncomingRequestEvent and makes Accept available to client code.

/// <summary>
/// handles session invitations by accepting all
/// incoming sessions.
/// </summary>
/// <param name="pEventSource">Local Endpoint</param>
/// <param name="pEventData">Incoming session</param>
void _IUccSessionManagerEvents.OnIncomingSession(
    IUccEndpoint pEventSource,
    UccIncomingSessionEvent pEventData)
{
    try
    {
        pEventData.Accept();
    }
    catch (COMException ce)
    {
        Console.WriteLine("Incoming Session is in Invalid State");
    }
}

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

Show:
© 2014 Microsoft