CreateTopicPage method

Creates a Topic Page object within a Discussion Page.

Syntax


C++
HRESULT CreateTopicPage (
   BSTR Name,
   BSTR Description,
   ERUTextFormat DescriptionFormat,
   LONG CreateOptions,
   IERUItem** ppTopicPage)
Scripting languages
Set TopicPage = Object.CreateTopicPage (
   Name as String,
   Description as String,
   DescriptionFormat as ERUTextFormat,
   CreateOptions as Long)

Parameters


Name

The name of the Topic Page. The name must be unique in the container.

Description

The Topic Page's description.

DescriptionFormat

The format of the Description parameter.

For further information, see ERUTextFormat.

CreateOptions

One or more values from the ERUCreateOptions enumeration, logically OR'ed together. At present, the only valid create options for CreateTopicPage are erCreateOptIncludeAttachmentBox and erCreateOptShowDescription. [optional, default = erCreateOptNone]

ppTopicPage

Upon return, An IERUItem interface pointer to the newly-added topic page.

Return value


C++

The return code.

Scripting languages

An IERUItem interface pointer to the newly-added topic page.

Remarks


If you call CreateTopicPage on any object other than a Discussion Page, the method returns the error E_NOTIMPL.

The name of the new topic page can be no longer than 126 characters.

Home

Interface

IERUContainer


See also

Creating Items