PortalInitializeEventForRecurrence Method
This method retrieves prerequisite information before registering a contact for a recurring event. For example, you can check whether a contact is already a registered participant in the recurring event, whether a contact already exists in the system, and specify associated participant details of the contact.

Namespace:  PortalService
 

Syntax
C#
public long InitializeEventForRecurrence(
	long lPortalID,
	long eventId,
	long contactId,
	ref ParticipantDetails[] participantsList,
	bool isGroupRegistration,
	out bool isSeatAvailable,
	out double discountedCost,
	ref ArrayList arrRecurrences,
	out string errEventsXML,
	out string error
)

Parameters

lPortalID
Type: SystemInt64
[in]Pass the value -1 as a Portal instance will not be available.
eventId
Type: SystemInt64
[in]The ID of the event.
contactId
Type: SystemInt64
[in]The ID of the contact you want to register for a recurring event.
participantsList
Type: ParticipantDetails
[ref]Array of the ParticipantDetails structure that contains participation details of a contact.
isGroupRegistration
Type: SystemBoolean
[in]Enables contacts to register for the event as a group or as individual participants. Specify one of the following values:
  • 0 - Enables contacts to register as individual participants.
  • 1 - Enables contacts to register as a group.
isSeatAvailable
Type: SystemBoolean
[out]Indicates whether seats are available for contacts to register for the event. This parameter returns one of the following values:
  • 0 - Sufficient seats are not available.
  • 1 - Sufficient seats are available.
discountedCost
Type: SystemDouble
[out]The discounted cost available for the specified contact.
arrRecurrences
Type: System.CollectionsArrayList
[ref]ArrayList that contains the recurring event.
errEventsXML
Type: SystemString
[out]Contains the result of the recurring event details in XML format.
error
Type: SystemString
[out]The error message returned if the operation fails.

Return Value

Type: Int64
This method returns 0 if the operation is successful and a negative value if the operation fails.
See Also