This constructor is used to create a new CRegistration object.
Namespace: Asi.iBO.EventsAssembly: Asi.iBO (in Asi.iBO.dll) Version: 15.1.3.0
Syntax
| C# |
|---|
public CRegistration( IiMISUser user, string eventCode, string registrantContactId, bool autoEnroll, bool addLinked ) |
| Visual Basic |
|---|
Public Sub New ( _ user As IiMISUser, _ eventCode As String, _ registrantContactId As String, _ autoEnroll As Boolean, _ addLinked As Boolean _ ) |
| Visual C++ |
|---|
public: CRegistration( IiMISUser^ user, String^ eventCode, String^ registrantContactId, bool autoEnroll, bool addLinked ) |
Parameters
- user
- Type: Asi.iBO..::..IiMISUser
The IiMISUser object providing the security credentials of the logged in user.
- eventCode
- Type: System..::..String
The identifier of the associated event.
- registrantContactId
- Type: System..::..String
The identifier of the contact person for this registration.
- autoEnroll
- Type: System..::..Boolean
True to automatically enroll in any event functions which are marked as auto-enroll, otherwise false
- addLinked
- Type: System..::..Boolean
True to automatically add any functions that are linked to auto-enroll functions. Note that this parameter is only used if the autoEnroll parameter is true.
Remarks
If the user, eventCode, or registrantContactId parameters are
null, empty or invalid, an error is reported.
If the contact designated by registrantContactId is already registered for the indicated event, an error is
reported.
Exceptions
| Exception | Condition |
|---|---|
| Asi.iBO..::..NotLicensedException | Thrown if there is no license for events. |