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)
Syntax
'Declaration
Public Enumeration UCC_PUBLICATION_OPERATION_TYPE
public enum UCC_PUBLICATION_OPERATION_TYPE
public enum class UCC_PUBLICATION_OPERATION_TYPE
public enum UCC_PUBLICATION_OPERATION_TYPE
public enum UCC_PUBLICATION_OPERATION_TYPE
Members
Member name | Description |
---|---|
UCCPOT_ADD | The publication operation is to add category instances. |
UCCPOT_NONE | The publication operation is unspecified. An application must not set this flag to publish any category instance. |
UCCPOT_REMOVE | The publication operation is to remove category instances. |
Remarks
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
};
Example
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);
}
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