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.
Assembly: Microsoft.Office.Interop.UccApi (in microsoft.office.interop.uccapi.dll)
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( "containers", 0, 100, // in case of "containers", instance id = container # UCC_CATEGORY_INSTANCE_EXPIRE_TYPE .UCCCIET_USER, 0);