CreateEventPage method

Creates a new one-time (non-repeating) Event in a Calendar.

Syntax


C++

HRESULT CreateEventPage (
   BSTR Name,
   BSTR Description,
   ERUTextFormat DescriptionFormat,
   DATE,
   LONG Duration,
   IERUMemberSet* Participants,
   BSTR OtherParticipants,
   LONG CreateOptions,
   IERUItem** ppCalendarEventPage)

Scripting languages

Set EventPage = Object.CreateEventPage (
   
Name as String,
   Description as String,
   DescriptionFormat as ERUTextFormat,
   DATE,
   Duration as Long,
   Participants as IERUMemberSet*,
   OtherParticipants as String,
   CreateOptions as Long)

Parameters


Name

The name of the event.

Description

The description of the event.

DescriptionFormat

Indicates whether the Description parameter is in HTML or plain text format. For further information, see ERUTextFormat.

Date

The start date and time of the event.

Duration

How long the event will last (in minutes). The minimum and maximum values are 10 and 1440 minutes respectively.

Participants

Members participating in the event.

OtherParticipants

Event participants who are not members of the eRoom.

CreateOptions

One or more values from the ERUCreateOption enumeration, logically OR'ed together. This parameter is optional.

ppCalendarEvent

Upon return, an IERUItem interface pointer to the newly-created calendar event.

Return value


C++

The return code.

Scripting languages

An IERUItem interface pointer to the newly-created event.

Remarks


To create a repeating event, use the CreateRecurringEventPage method.

Home

Interface

IERUCalendar


See also

IERUItem

IERUCalendarEvent

Calenders