Delen via


Calendar.NumberOfHoursInThisPeriod Property

Definition

Gets the number of hours in the current day period of this Calendar object.

public:
 property int NumberOfHoursInThisPeriod { int get(); };
int NumberOfHoursInThisPeriod();
public int NumberOfHoursInThisPeriod { get; }
var int32 = calendar.numberOfHoursInThisPeriod;
Public ReadOnly Property NumberOfHoursInThisPeriod As Integer

Property Value

Int32

int

The number of hours in the current day period, or – 1 if the number of hours in the current day period is unknown.

Applies to

See also