PortalSetStateToRegisterForEvent Method
In an Event, this sets the participation status of a Participant to Registered.

Namespace:  PortalService
 

Syntax
C#
public long SetStateToRegisterForEvent(
	long eventId,
	long contactId,
	ref ParticipantDetails[] participantsList,
	string paymentTransactionDetails,
	out string error
)

Parameters

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 participation details of a Contact.
paymentTransactionDetails
Type: SystemString
[in] For paid Events, this includes details of the payment made by the specified Contact for registration to the Event.
error
Type: SystemString
[out] The error messages returned when the operation fails.

Return Value

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