Year class

Office 2013 and later

Year. When the object is serialized out as xml, its qualified name is b:Year.

Namespace:  DocumentFormat.OpenXml.Bibliography
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

public class Year : OpenXmlLeafTextElement

[ISO/IEC 29500-1 1st Edition]

Year (Year)

This element specifies the year in which a source was created or published.

[Example:

…<b:Title>
Title</b:Title>
<b:InternetSiteTitle>
Internet Site Title</b:InternetSiteTitle>
<b:Month>July</b:Month>
<b:Day>
1</b:Day>
<b:Year>2001</b:Year>
<b:MonthAccessed>Sept.</b:MonthAccessed>
<b:DayAccessed>22</b:DayAccessed>
<b:YearAccessed>
1999</b:YearAccessed>
…

end example]

The possible values for this element are defined by the ST_String simple type (§22.9.2.13).

Parent Elements

Source (§22.6.2.59)

[Note: The W3C XML Schema definition of this element’s content model (ST_String) is located in §A.6.9. end note]

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: