DateAndOrTimeHasYear Property
Gets a value indicating whether the encapsulated data contains information about the year.
Namespace: FolkerKinzel.VCards.ModelsAssembly: FolkerKinzel.VCards (in FolkerKinzel.VCards.dll) Version: 8.1.0+9753915cd0f8006e7e5b4f62aa63aa3651006f06
public abstract bool HasYear { get; }
Public MustOverride ReadOnly Property HasYear As Boolean
Get
public:
virtual property bool HasYear {
bool get () abstract;
}
abstract HasYear : bool with get
Property Value
Booleantrue if the instance contains information about the year, otherwise
false.
The vCard 4.0 specification allows to omit the year in a date but the .NET data types don't. This property
gets the information whether the year component of an encapsulated
DateOnly or
DateTimeOffset
value should be treated as irrelevant or not.