This documentation is archived and is not being maintained.

UccCategoryInstance 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 UccCategoryInstance Class .

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

protected UccCategoryInstance ()
protected UccCategoryInstance ()
protected function UccCategoryInstance ()

As an abstract class, UccCategoryInstance does not provide a callable constructor. Instead, an instance of the IUccCategoryInstance interface must be obtained. The publication manager (IUccPublicationManager) provides a method to create a new reference to a new instance of IUccCategoryInstance.

Another way to obtain an instance of IUccCategoryInstance is to handle the category context event OnCategoryInstanceAdded. The event data parameter provides a reference to a category instance provisioned on a client by a Unified Communications server.

The following example obtains an IUccCategoryInstance reference rather than a UccCategoryInstance class instance. The obtained interface provides all of the category instance functionality required for publication. In addition, Unified Communications publication related methods accept this interface rather than a class instance.

IUccCategoryInstance pubInstance = pubMgr.CreatePublishableCategoryInstance(
             100, // in case of "containers", instance id = container #

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