This documentation is archived and is not being maintained.

IUccOperationContext 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 metadata associated with an asynchronous operation and its progress.

Namespace: Microsoft.Office.Interop.UccApi
Assembly: Microsoft.Office.Interop.UccApi (in

public interface class IUccOperationContext : IUnknown
public interface IUccOperationContext extends IUnknown
public interface IUccOperationContext extends IUnknown

Unified Communications Client API supports this interface to provide a means to correlate requests with the corresponding asynchronous responses. A client can assign an operational ID to indicate the sequence of a particular request. The client can then read the operation ID of a response to ascertain if the response matches the request. Other contextual information can be dispatched as well.

Win32 COM/C++ Syntax

interface IUccOperationContext : IUnknown

The following example includes two private methods. The first method creates and publishes a category instance. The second method provides an operation context interface for the first method.

private void PublishCategoryInstance(IUccCategoryInstance cat, string categoryName)
   if (categoryName != null)
      UccOperationContext oc = createOperationContext("Cat Name", categoryName);
      IUccPublication pub = pubMgr.CreatePublication() as IUccPublication;
      if (pub != null)
         UCC_Advise<_IUccPublicationEvent>(pub, this);
         cat.PublicationOperation = UCC_PUBLICATION_OPERATION_TYPE.UCCPOT_ADD;
private UccOperationContext createOperationContext(string key, string value)
    UccOperationContext oc = new UccOperationContext();
    UccContext c = new UccContextClass();
    c.AddNamedProperty(key, value);
    oc.Initialize(1, c);
    return oc;

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