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 microsoft.office.interop.uccapi.dll)

Syntax

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

Remarks

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.

Example

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);

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

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