Skip to main content

Holiday Members

Represents a day that is recognized as a holiday.

Constructors

Name Description
Holiday(DateTime, String, String) Initializes a new instance of the Holiday class with the specified date, display name and location.
Holiday(DateTime, String) Initializes a new instance of the Holiday class with the specified date and display name.

Properties

Name Description
Date Returns a date, associated with the current KnownDateDay object or its descendant. Inherited from KnownDateDay.
DisplayName Gets or sets the name of the day to display, associated with the current KnownDateDay object or its descendant. Inherited from KnownDateDay.
Location Gets or sets the location attribute of the holiday.
Type Gets the day type associated with this class.

Methods

Name Description
CheckDate(DateTime) Determines whether the specified date is treated as a working day for the current holiday.
Clone() Creates a copy of the current Holiday object.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current Holiday instance.
GetHashCode() Gets the hash code (a number) that corresponds to the value of the current Holiday object.
GetType() Gets the Type of the current instance. Inherited from Object.
IsWorkDay(DateTime) Determines whether the specified date is treated as a working day for the current holiday.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a string that represents the current object. Inherited from Object.
See Also