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

Inserts a reservation corresponding to an event in the calendar application.

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

Syntax

C#
public int InsertCalendarReservation(
	int eventId,
	int resourceId,
	DateTime startDatetime,
	DateTime endDatetime,
	string purpose,
	string isPrivate,
	int repeatingSequenceId,
	int EventUserId,
	int currentUserId
)
Visual Basic (Declaration)
Public Function InsertCalendarReservation ( _
	eventId As Integer, _
	resourceId As Integer, _
	startDatetime As DateTime, _
	endDatetime As DateTime, _
	purpose As String, _
	isPrivate As String, _
	repeatingSequenceId As Integer, _
	EventUserId As Integer, _
	currentUserId As Integer _
) As Integer
Visual C++
public:
int InsertCalendarReservation(
	int eventId, 
	int resourceId, 
	DateTime startDatetime, 
	DateTime endDatetime, 
	String^ purpose, 
	String^ isPrivate, 
	int repeatingSequenceId, 
	int EventUserId, 
	int currentUserId
)

Parameters

eventId
Type: System..::.Int32
Id of the event corresponding to which this reservation is updated.
resourceId
Type: System..::.Int32
Id of the resource being reserved for the reservation.
startDatetime
Type: System..::.DateTime
Starting Date and Time of the event. (This value should be sent converted into the Server's timezone)
endDatetime
Type: System..::.DateTime
Ending Date and Time of the event. (This value should be sent converted into the Server's timezone)
purpose
Type: System..::.String
Purpose of the reservation.
isPrivate
Type: System..::.String
Flag (Y/N) indicating whether the reservation created is private or for a group.
repeatingSequenceId
Type: System..::.Int32
Unique id to be assigned to a set of repeating reservations.
EventUserId
Type: System..::.Int32
The uer id of the owner of the event
currentUserId
Type: System..::.Int32
the user id for the current user

Return Value

Id of the newly created reservation when successful, -1 in case of error.

See Also