Noda Time
Item Property (unit)
NamespacesNodaTimePeriodBuilderItem[([( PeriodUnits])])

[This is preliminary documentation and is subject to change.]

Gets or sets the value of a single unit.
Declaration Syntax
C#Visual BasicVisual 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);
}
Parameters
unit (PeriodUnits)
A single value within the PeriodUnits enumeration.
Return Value
The value of the given unit within this period builder, or zero if the unit is unset.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionunit is not a single unit.

Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)