DateOnly.Year Proprietà

Definizione

Ottiene il componente anno della data di cui questa istanza è rappresentata.

public:
 property int Year { int get(); };
public int Year { get; }
member this.Year : int
Public ReadOnly Property Year As Integer

Valore della proprietà

Componente dell'anno, espresso come valore compreso tra 1 e 9999.

Si applica a