Duration.Years PropertyDuration.Years PropertyDuration::Years Property

Gets the years component of the current DurationDurationDuration.

Syntax

Public ReadOnly Property Years As Long
        Get
public long Years { get; }
public:
property long Years {
    long get();
}
 

Property Value

Type: System.Int64System.Int64System::Int64

The years component of this instance. The return value can be positive or negative.