This constructor is used to instantiate existing Events from the database.
Namespace: Asi.iBO.EventsAssembly: Asi.iBO (in Asi.iBO.dll) Version: 15.1.3.0
Syntax
| C# |
|---|
public CEvent( IiMISUser user, string eventCode ) |
| Visual Basic |
|---|
Public Sub New ( _ user As IiMISUser, _ eventCode As String _ ) |
| Visual C++ |
|---|
public: CEvent( IiMISUser^ user, String^ eventCode ) |
Parameters
- user
- Type: Asi.iBO..::..IiMISUser
The IiMISUser object providing the security credentials of the logged in user.
- eventCode
- Type: System..::..String
The code of the event desired.
Exceptions
| Exception | Condition |
|---|---|
| Asi.iBO..::..NotLicensedException | Thrown if there is no license for events. |
| Asi.iBO..::..ObjectNotFoundException | Thrown if no event is found with the specified eventCode. |