Export (0) Print
Expand All

IUccContext 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 context associated with new object instances.

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

'Declaration
Public Interface IUccContext
	Inherits IUccPropertyCollection, IUccReadOnlyPropertyCollection, IUccCollection, IDispatch, _
	IUnknown
public interface IUccContext extends IUccPropertyCollection, IUccReadOnlyPropertyCollection, 
	IUccCollection, IDispatch, IUnknown
public interface IUccContext extends IUccPropertyCollection, IUccReadOnlyPropertyCollection, 
	IUccCollection, IDispatch, IUnknown

A context is a collection of application-specific properties related to an attaching object. This interface is an overload of the IUccPropertyCollection interface.

Win32 COM/C++ Syntax

interface IUccContext : IUccPropertyCollection

The following example obtains an IUccContext interface and queries the existence of a named property. If the property exists, the string value of the property is displayed on the local user's console.

private void GetSubscriptionContext(UccSubscription s)
{
   IUccContext c = s.Context;
   if (c != null && c.IsNamedPropertySet("SubscribeContext"))
   {
      IUccProperty p = c.get_NamedProperty("SubscribeContext");
      Console.WriteLine("Subscribe Context: " + p.ToString());
   }
}

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:
© 2015 Microsoft