时区元素(区域设置)TimeZone element (Regional Settings)
3/9/2015
本文内容
适用于: SharePoint 2016 |SharePoint Foundation 2013 |SharePoint Online |SharePoint Server 2013Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013
为时区中的区域设置定义时区。XML (%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\CONFIG)或指定 RGNLSTNG.XML 中的时区。XML (%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\TEMPLATE\1033\XML)。Defines a time zone for regional settings in TIMEZONE.XML (%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\CONFIG) or specifies a time zone in RGNLSTNG.XML (%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\TEMPLATE\1033\XML).
Hidden = "TRUE" | "FALSE"
HTMLEncode = "TRUE" | "FALSE"
ID = "Integer"
Name = "Text">
...
...
...
元素和属性Elements and attributes
下面各部分介绍了属性、子元素和父元素。The following sections describe attributes, child elements, and parent elements.
AttributesAttributes
属性Attribute
说明Description
HiddenHidden
可选属性,类型为 Boolean。Optional Boolean.
HTMLEncodeHTMLEncode
可选属性,类型为 Boolean。Optional Boolean. 如果为 TRUE,则转换嵌入的字符,以便这些字符作为文本显示在浏览器中。TRUE to convert embedded characters so that they are displayed as text in the browser. 换句话说,就是将可能与 HTML 标记混淆的字符转换为实体。In other words, characters that could be confused with HTML tags are converted to entities.
IDID
必需属性,类型为 Integer。Required Integer. 指定时区的 ID。Specifies the ID for the time zone.
名称Name
必需属性,类型为 Text。Required Text. 指定时区的名称。Specifies the name of the time zone.
子元素Child elements
父元素Parent elements
出现次数Occurrences
最小值:0Minimum: 0
最大值:无限制Maximum: Unbounded
说明Remarks
在 RGNLSTNG.XML 或 TIMEZONE.XML 的上下文之外使用 TimeZone 空元素来返回当前时区。Outside the context of RGNLSTNG.XML or TIMEZONE.XML, use an empty TimeZone element to return the current time zone.
示例Example
下面来自 TIMEZONE.XML 文件的示例定义时区。The following example from the file TIMEZONE.XML defines a time zone.
480
0
10
5
2
-60
4
1
2