Export (0) Print
Expand All
Expand Minimize

UCC_PUBLICATION_OPERATION_TYPE Enumeration

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.

Enumerates the operations used for publishing a category instance.

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

'Declaration
Public Enumeration UCC_PUBLICATION_OPERATION_TYPE
public enum UCC_PUBLICATION_OPERATION_TYPE
public enum UCC_PUBLICATION_OPERATION_TYPE

Member nameDescription
UCCPOT_ADDThe publication operation is to add category instances.
UCCPOT_NONEThe publication operation is unspecified. An application must not set this flag to publish any category instance.
UCCPOT_REMOVEThe publication operation is to remove category instances.

Publishing a category instance amounts to adding a new category instance to, removing an existing category instance from, and modifying an existing category instance in a publication. Each type of such operations is specified by a member of this enumeration type. The PublicationOperation property accepts values of this enumeration type.

Win32 COM/C++ Syntax

typedef enum UCC_PUBLICATION_OPERATION_TYPE
{
   UCCPOT_NONE = 0,
   UCCPOT_ADD = 1,
   UCCPOT_REMOVE = 2
};

The following example is a snippet from a client method that publishes a category instance. The example creates a publishable category instance and sets the publication operation using this enumeration.

IUccCategoryInstance ci = pCategory.CategoryInstance;
IUccCategoryInstance pCI = ci.CreatePublishableCategoryInstance();
pCI.PublicationOperation = UCC_PUBLICATION_OPERATION_TYPE.UCCPOT_ADD;
IUccPublication pub = pubMgr.CreatePublication() as IUccPublication;
if (pub != null)
{
   UCC_Advise<_IUccPublicationEvent>(pub, this);
   pub.AddPublishableCategoryInstance(pCI);
   pub.Publish(null);
}

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