UserLock API
Public Types | Properties | List of all members
TimeFrame Class Reference

Time frame for hour restrictions. More...

Inheritance diagram for TimeFrame:
ProtectedItem

Public Types

enum  WeekDays : byte {
  None = 0x00 , Monday = 0x01 , Tuesday = 0x02 , Wednesday = 0x04 ,
  Thursday = 0x08 , Friday = 0x10 , Saturday = 0x20 , Sunday = 0x40 ,
  All = Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday
}
 Enum allowing to specify days of the week. Several days can be combined with the or operator (|). See the property DaysOfWeek of the TimeFrame class. More...
 

Properties

int MinutesFrom [get, set]
 Hour of the beginning of the time frame in minutes since midnight (00:00 or 12:00 AM)
 
TimeSpan From [get]
 Hour of the beginning of the time frame since midnight (00:00 or 12:00 AM)
 
int MinutesTo [get, set]
 Hour of the end of the time frame in minutes since midnight (00:00 or 12:00 AM)
 
TimeSpan To [get]
 Hour of the end of the time frame in minutes since midnight (00:00 or 12:00 AM)
 
WeekDays DaysOfWeek [get, set]
 Get/set days of the week concerned by the time frame. See the enum WeekDays.
 
bool Monday [get, set]
 Get/set if Monday is concerned.
 
bool Tuesday [get, set]
 Get/set if Tuesday is concerned.
 
bool Wednesday [get, set]
 Get/set if Wednesday is concerned.
 
bool Thursday [get, set]
 Get/set if Thursday is concerned.
 
bool Friday [get, set]
 Get/set if Friday is concerned.
 
bool Saturday [get, set]
 Get/set if Saturday is concerned.
 
bool Sunday [get, set]
 Get/set if Sunday is concerned.
 
- Properties inherited from ProtectedItem
SessionType SessionTypes [get, set]
 Get/set session types concerned by the protected item.
 
string Name [get]
 Name of the protected item.
 

Detailed Description

Time frame for hour restrictions.

Member Enumeration Documentation

◆ WeekDays

enum WeekDays : byte

Enum allowing to specify days of the week. Several days can be combined with the or operator (|). See the property DaysOfWeek of the TimeFrame class.

Enumerator
None 

No day is selected.

Monday 

Monday is selected.

Tuesday 

Tuesday is selected.

Wednesday 

Wednesday is selected.

Thursday 

Thursday isselectedy.

Friday 

Friday is selected.

Saturday 

Saturday is selected.

Sunday 

Sunday is selected.

All 

All days of the week are selected.