| PortalRegisterParticipantsToEvent Method |
This method registers contacts to an event and updates the database with any changes made to records related to the contact and/or participant objects items.
Namespace: PortalServiceC#
public long RegisterParticipantsToEvent( long lPortalID, ref ArrayList arrObjInst, ref RLData[] arrRLData, ref ArrayList arrRelation, ref AttachmentFile[] arrAttachedFiles, ref AttachmentComments[] arrAttachedComments, ref CommentsTab[] arrCommentsTabs, ref ParticipantDetails[] participantsList, ref ArrayList arrUpdateData, bool refreshAfterUpdate, out string error, long eventId, long contactid, bool isEventGroupRegistration, ref ArrayList BaseRelationshipInfo, out bool isSeatAvailable )
Parameters
- lPortalID
- Type: SystemInt64
[in]Pass the value -1 as a Portal instance will not be available. - arrObjInst
- Type: System.CollectionsArrayList
[ref]ArrayList of the ObjInstanceData structure that contains information about the item of a contact and/or participant object items. - arrRLData
- Type: RLData
[ref]Array of the RLData structure that contains information from a RecordList tab of a contact and/or participant object items. - arrRelation
- Type: System.CollectionsArrayList
[ref]ArrayList of the RelationshipData structure that contains information about the relationship between objects. - arrAttachedFiles
- Type: AttachmentFile
[ref]Array of the AttachmentFile structure that contains details of attachments. - arrAttachedComments
- Type: AttachmentComments
[ref]Array of the AttachedComments structure that contains information about comments for attachment files. - arrCommentsTabs
- Type: CommentsTab
[ref]Array of the CommentsTab structure that contains information from the Comments Tab of a contact and/or participant object items. - participantsList
- Type: ParticipantDetails
[ref]Array of the ParticipantDetails structure that contains participation details of a contact. - arrUpdateData
- Type: System.CollectionsArrayList
[ref]ArrayList of the PORInstanceData structure that contains information about the relationship properties of a configured object. - refreshAfterUpdate
- Type: SystemBoolean
[in]Always FALSE because it’s not required to refresh information with latest updates as no Portal instance will be available. - error
- Type: SystemString
[out]The error message returned if the operation fails. - 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. - isEventGroupRegistration
- 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.
- BaseRelationshipInfo
- Type: System.CollectionsArrayList
[ref]ArrayList of the ObjInstanceData structure that contains information about the related object item. - 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.
Return Value
Type: Int64This method returns 0 if the operation is successful and a negative value if the operation fails.