UccSubscriptionEvent Constructor

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.

Initializes a new instance of the UccSubscriptionEvent Class .

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

Syntax

'Declaration
Protected Sub New
protected UccSubscriptionEvent ()
protected:
UccSubscriptionEvent ()
protected UccSubscriptionEvent ()
protected function UccSubscriptionEvent ()

Remarks

UccSubscriptionEvent is an abstract class and therefore, does not provide a callable constructor. To obtain an instance of the UccSubscriptionEvent, a client must handle the subscription events. The event data parameter of all three subscription events provides a client with an instance of the UccSubscriptionEvent class.

Example

The following example handles the subscription OnUnsubscribe event and uses the provided UccSubscriptionEvent instance to provide a condition under which the IUccSubscription is unadvised.

void _IUccSubscriptionEvents.OnUnsubscribe(
    UccSubscription pEventSource, 
    UccSubscriptionEvent pEventData)
{
    if (pEventData.IsComplete == true)
    {
        UCC_Unadvise<_IUccSubscriptionEvents>(pEventSource, this);
    }
}

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

UccSubscriptionEvent Class
UccSubscriptionEvent Members
Microsoft.Office.Interop.UccApi Namespace