Adding an attendee

  Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic! Mail us feedback on this topic!  

The following code example demonstrates how an attendee can be added to a booking system event.

 

[C#]

 

using CMS.EventManager;

 

int eventNodeId = 10;

 

// Create new attendee object

EventAttendeeInfo eai = new EventAttendeeInfo();

 

// Set its properties

eai.AttendeeEventNodeID = eventNodeId;

eai.AttendeeFirstName = "John";

eai.AttendeeLastName = "Smith";

eai.AttendeeEmail = "john.smith@example.com";

 

// Save the object

EventAttendeeInfoProvider.SetEventAttendeeInfo(eai);

 

Page url: http://devnet.kentico.com/docs/5_5r2/devguide/index.html?api_adding_an_attendee.htm