[]
Initializes a new instance of the Holiday class.
public Holiday()
Public Sub New()
Initializes a new instance of the Holiday class with the specified settings.
public Holiday(int month, int day)
Public Sub New(month As Integer, day As Integer)
Type | Name | Description |
---|---|---|
int | month | An int value that represents the holiday month. |
int | day | An int value that represents the holiday day. |
Type | Condition |
---|---|
ArgumentOutOfRangeException |
|
Initializes a new instance of the Holiday class with the specified settings.
public Holiday(string name, int month, int day)
Public Sub New(name As String, month As Integer, day As Integer)
Type | Name | Description |
---|---|---|
string | name | A string value indicates the name of the force holiday. |
int | month | An int value that represents the holiday month. |
int | day | An int value that represents the holiday day. |
Type | Condition |
---|---|
ArgumentOutOfRangeException |
|
Initializes a new instance of the Holiday class with the specified settings.
public Holiday(int startMonth, int startDay, int endMonth, int endDay)
Public Sub New(startMonth As Integer, startDay As Integer, endMonth As Integer, endDay As Integer)
Type | Name | Description |
---|---|---|
int | startMonth | An int value that represents the starting month of the holiday. |
int | startDay | An int value that represents the starting day of the holiday. |
int | endMonth | An int value that represents the ending month of the holiday. |
int | endDay | An int value that represents the ending day of the holiday. |
Type | Condition |
---|---|
ArgumentOutOfRangeException |
|
Initializes a new instance of the Holiday class with a specified holiday date.
public Holiday(string name, int startMonth, int startDay, int endMonth, int endDay)
Public Sub New(name As String, startMonth As Integer, startDay As Integer, endMonth As Integer, endDay As Integer)
Type | Name | Description |
---|---|---|
string | name | A string value indicates the name of the force holiday. |
int | startMonth | An int value that represents the starting month of the holiday. |
int | startDay | An int value that represents the starting day of the holiday. |
int | endMonth | An int value that represents the ending month of the holiday. |
int | endDay | An int value that represents the ending day of the holiday. |
Type | Condition |
---|---|
ArgumentOutOfRangeException |
|