[This is preliminary documentation and is subject to change.]

Inserts a new event or a set of new repeating events into the database.

Namespace:  OfficeClip.DBLayer.Desktop
Assembly:  OfficeClip.DBLayer (in OfficeClip.DBLayer)
Version: 8.1.1.0

Syntax

C#
public int InsertEvent(
	EventInfo ei,
	ConfigureInfo session,
	ref DateTime modifiedTime
)
Visual Basic (Declaration)
Public Function InsertEvent ( _
	ei As EventInfo, _
	session As ConfigureInfo, _
	ByRef modifiedTime As DateTime _
) As Integer
Visual C++
public:
int InsertEvent(
	EventInfo^ ei, 
	ConfigureInfo^ session, 
	DateTime% modifiedTime
)

Parameters

ei
Type: OfficeClip.BusinessLayer.Desktop..::.EventInfo
Instance of the EventInfo object containing all the detailed information about the event.
session
Type: OfficeClip.Utils..::.ConfigureInfo
The current login session
modifiedTime
Type: System..::.DateTime%
The time of last modification

Return Value

Id of the newly created event if successful, -1 in case of an error.

See Also