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

Inserts a new reservation into the database.

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

Syntax

C#
public int InsertReservation(
	int resourceId,
	DateTime startDateTime,
	DateTime endDateTime,
	string purpose,
	string isPrivate,
	int repeatingSequenceId,
	int UserId
)
Visual Basic (Declaration)
Public Function InsertReservation ( _
	resourceId As Integer, _
	startDateTime As DateTime, _
	endDateTime As DateTime, _
	purpose As String, _
	isPrivate As String, _
	repeatingSequenceId As Integer, _
	UserId As Integer _
) As Integer
Visual C++
public:
int InsertReservation(
	int resourceId, 
	DateTime startDateTime, 
	DateTime endDateTime, 
	String^ purpose, 
	String^ isPrivate, 
	int repeatingSequenceId, 
	int UserId
)

Parameters

resourceId
Type: System..::.Int32
Id of the resource being reserved for the reservation.
startDateTime
Type: System..::.DateTime
Starting Date and Time of the reservation. (This value should be sent converted into the Server's timezone)
endDateTime
Type: System..::.DateTime
Ending Date and Time of the reservation. (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.
UserId
Type: System..::.Int32
Id of the user creating the reservation.

Return Value

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

See Also