PortalRegisterParticipantToEvent Method
Register a specific Contact for an Event.

Namespace:  PortalService
 

Syntax
C#
public long RegisterParticipantToEvent(
	long lPortalID,
	long eventId,
	long contactId,
	ref ParticipantDetails[] participantsList,
	bool isGroupRegistration,
	out bool isSeatAvailable,
	out string error
)

Parameters

lPortalID
Type: SystemInt64
[in] The ID of the Customer Portal instance.
eventId
Type: SystemInt64
[in] The ID of the required Event.
contactId
Type: SystemInt64
[in] The ID of the Contact you want to register for an Event.
participantsList
Type: ParticipantDetails
[ref] This is an array of the ParticipantDetails structure that contains the participation details of a Contact.
isGroupRegistration
Type: SystemBoolean
[in] Enables you to specify whether you want to enable Contacts to register for the Event as a group or as individual Participants. You can specify one of the following values:
  • 0 - Specify this value to enable Contacts to register for an Event as individual Participants.
  • 1 - Specify this value to enable Contacts to register for an Event as a group.
isSeatAvailable
Type: SystemBoolean
[out] Indicates whether sufficient seats are available for Contacts to register for the Event. This parameter returns one of the following values:
  • 0 - Indicates that sufficient seats are not available in the Event.
  • 1 - Indicates that sufficient seats are available in the Event.
error
Type: SystemString
[out] The error messages returned when the operation fails.

Return Value

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