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

Inserts the user availability information corresponding to an event for the currently logged in user.

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

Syntax

C#
public int InsertUserAvailability(
	int eventId,
	DateTime startDateTime,
	DateTime endDateTime,
	EventShowAs showAs,
	int EventUserId
)
Visual Basic (Declaration)
Public Function InsertUserAvailability ( _
	eventId As Integer, _
	startDateTime As DateTime, _
	endDateTime As DateTime, _
	showAs As EventShowAs, _
	EventUserId As Integer _
) As Integer
Visual C++
public:
int InsertUserAvailability(
	int eventId, 
	DateTime startDateTime, 
	DateTime endDateTime, 
	EventShowAs showAs, 
	int EventUserId
)

Parameters

eventId
Type: System..::.Int32
Id of the event for which the user availability has to be inserted.
startDateTime
Type: System..::.DateTime
Date and Time when the event is going to start. (Converted to Server's Timezone).
endDateTime
Type: System..::.DateTime
Date and Time when the event is going to end. (Converted to Server's Timezone).
showAs
Type: OfficeClip.Utils..::.EventShowAs
Enumerated value of EventShowAs determining what kind of availability has to be displayed for the user for time period of the event. The user id of the event creatorOfficeClip.Utils..::.EventShowAs
EventUserId
Type: System..::.Int32

Return Value

0 if successful, -1 in case of an error.

See Also