Partager via


Year Class

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

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.OpenXmlLeafTextElement
        DocumentFormat.OpenXml.Bibliography.Year

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

Syntax

'Declaration
Public Class Year _
    Inherits OpenXmlLeafTextElement
'Usage
Dim instance As Year
public class Year : OpenXmlLeafTextElement

Remarks

[ISO/IEC 29500-1 1st Edition]

22.6.2.75 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.

Thread Safety

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

See Also

Reference

Year Members

DocumentFormat.OpenXml.Bibliography Namespace