# ProjectWorkWeek

A named, inclusive date range with weekday overrides. Unspecified weekdays inherit the ordinary calendar.

Class 

`OfficeIMO.Project`

**Namespace**

`OfficeIMO.Project`

**Assembly**

`OfficeIMO.Project`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[ProjectWorkWeek.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectWorkWeek.cs#L20)

**Base**

`ProjectObject`

**Modifiers**

sealed

A named, inclusive date range with weekday overrides. Unspecified weekdays inherit the ordinary calendar.

## Inheritance

- [ProjectObject](/api/project/officeimo-project-projectobject/)
- ProjectWorkWeek

## Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Property [ProjectCalendar.WorkWeeks](/api/project/officeimo-project-projectcalendar/#property-workweeks)

Filter members 

Show inherited

## Methods

`public ProjectWeekDay SetWorkingDay(DayOfWeek day, params ProjectWorkingTime[] times)` [#](#method-setworkingday-dayofweek-officeimo-project-projectworkingtime)

[ProjectWorkWeek.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectWorkWeek.cs#L20)

Replaces one weekday's intervals. No intervals means non-working.

Parameters

**day System.DayOfWeek required**

**times OfficeIMO.Project.ProjectWorkingTime[] required**

Returns

`ProjectWeekDay`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string? Name { get; set; }` [#](#property-name)

[ProjectWorkWeek.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectWorkWeek.cs#L11)

Optional descriptive label.

`public DateTime? FromDate { get; set; }` [#](#property-fromdate)

[ProjectWorkWeek.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectWorkWeek.cs#L13)

Inclusive first date; null means no lower boundary.

`public DateTime? ToDate { get; set; }` [#](#property-todate)

[ProjectWorkWeek.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectWorkWeek.cs#L15)

Inclusive last date; null means no upper boundary.

`public ProjectCollection<ProjectWeekDay> WeekDays { get; }` [#](#property-weekdays)

[ProjectWorkWeek.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Project/Model/ProjectWorkWeek.cs#L17)

Weekday overrides within this date range.

<!-- PowerForge markdown artifact sha256:A9EA8036ED71DA9694F7DD1E478F74A2E97E1EB74E9047FE0FD7537C0C6F8C6B -->
