[This is preliminary documentation and is subject to change.]
Gets or sets the value of a single unit.
| C# | Visual Basic | Visual C++ |
public long this[ PeriodUnits unit ] { get; set; }
Public Default Property Item ( _ unit As PeriodUnits _ ) As Long Get Set
public: property long long default[PeriodUnits unit] { long long get (PeriodUnits unit); void set (PeriodUnits unit, long long value); }
- unit (PeriodUnits)
- A single value within the PeriodUnits enumeration.
The value of the given unit within this period builder, or zero if the unit is unset.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | unit is not a single unit. |
Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)