GroupCreateOfficeHoliday(String, Byte, Byte, UInt16, NullableTimeSpan, Byte, Byte, UInt16, NullableTimeSpan) Method

Creates a new OfficeHoliday object for this group.

Definition

Namespace: TCX.Configuration
Assembly: 3cxpscomcpp2 (in 3cxpscomcpp2.dll) Version: 20.0.1
C#
OfficeHoliday CreateOfficeHoliday(
	string name,
	byte daystart,
	byte monthstart,
	ushort yearstart = 0,
	TimeSpan? starttime = null,
	byte dayend = 0,
	byte monthend = 0,
	ushort yearend = 0,
	TimeSpan? endtime = null
)

Parameters

name  String
name of the holiday
daystart  Byte
Day
monthstart  Byte
Month
yearstart  UInt16  (Optional)
Year
starttime  NullableTimeSpan  (Optional)
TimeOfStartDate
dayend  Byte  (Optional)
DayEnd
monthend  Byte  (Optional)
MonthEnd
yearend  UInt16  (Optional)
YearEnd
endtime  NullableTimeSpan  (Optional)
TimeOfStartDate

Return Value

OfficeHoliday
Initialized object of type OfficeHoliday.

Remarks

It is recommended to store the (new) object created by this method as a part of Group saving procedure.
i.e.
C#
Group g;
OfficeHoliday h = g.CreateOfficeHoliday();
initialization here of h
g.AttachOnSave(h);
g.Save();

See Also