Initializes a new instance of the
Holiday class with a specified holiday date.
Syntax
'Declaration
Public Function New( _
ByVal As String, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Integer _
)
'Usage
Dim name As String
Dim startMonth As Integer
Dim startDay As Integer
Dim endMonth As Integer
Dim endDay As Integer
Dim instance As New Holiday(name, startMonth, startDay, endMonth, endDay)
public Holiday(
string ,
int ,
int ,
int ,
int
)
Parameters
- name
- A name that represents the holiday.
- startMonth
- An integer value that represents the starting month of the holiday.
- startDay
- An integer value that represents the starting day of the holiday.
- endMonth
- An integer value that represents the ending month of the holiday.
- endDay
- An integer value that represents the ending day of the holiday.
See Also