SharePoint网站中的区域设置:"Regional Settings",可以用CSOM通过Site的一些属性去设置它。

Time Zone部分:

Specify the standard time zone.

对应的属性为:web.RegionalSettings.TimeZone

TimeZone类型属性,示例如下:

web.RegionalSettings.TimeZone = web.RegionalSettings.TimeZones.GetById(80);

Region部分:

Locale

Select a locale from the list to specify the way the site displays numbers, dates, and time.

对应的属性为:web.RegionalSettings.LocaleId

整型,设置相应的语言ID即可。

Sort Order

Specify the sort order.

对应的属性为:web.RegionalSettings.Collation

短整型

Set Your Calendar

Specify the type of calendar.

对应的属性为:web.RegionalSettings.CalendarType和web.RegionalSettings.ShowWeeks

短整型和布尔类型

Enable An Alternate Calendar

Specify a secondary calendar that provides extra information on the calendar features.

对应的属性为:web.RegionalSettings.AlternateCalendarType

短整形,默认None的值为0

Define Your Work Week

Select which days comprise your work week and select the first day of each work week.

对应的属性为:web.RegionalSettings.WorkDays、web.RegionalSettings.FirstDayOfWeek、web.RegionalSettings.FirstWeekOfYear、web.RegionalSettings.WorkDayStartHour和web.RegionalSettings.WorkDayEndHour。

均为短整型。

WorkDays中,周日为64、周一为32、周二为16、周三为8、周四为4、周五为2、周六为1。属性值为按位或运算,比如周三和周五即为8|2=10。

FirstDayOfWeek和FirstWeekOfYear为Index,从0开始按顺序与选项对应。

WorkDayStartHour和WorkDayEndHour为分钟数,如上午8:00为480,注意这里只能为60的整数倍,并且如果超过1440会被置为0点。

Time Format

Specify whether you want to use 12-hour time format or 24-hour format.

对应的属性为:web.RegionalSettings.Time24

布尔类型,标识是否采用24小时制。

以上就是区域设置相关的CSOM属性,可以用来方便地获取与设置网站的区域设置。




SharePoint Site "Regional Settings"功能与CSOM的对应的更多相关文章

  1. SharePoint Site "Language Settings"功能与CSOM的对应

    博客地址:http://blog.csdn.net/FoxDave SharePoint网站中的语言设置:"Language Settings",可以用CSOM通过Site的一些 ...

  2. SharePoint SC "Audit Settings"功能与CSOM的对应

    博客地址:http://blog.csdn.net/FoxDave SharePoint网站集中有个关于审计的功能:"Site collection audit settings&quo ...

  3. SharePoint Document Library中的"Versioning Settings"功能与CSOM的对应

     博客地址:http://blog.csdn.net/FoxDave SharePoint文档库关于版本的设置:"Versioning Settings",可以通过CSOM用L ...

  4. SharePoint API测试系列——Manage SharePoint Site Policy & Expiration Email with CSOM API

    转载请注明出自天外归云的博客园:http://www.cnblogs.com/LanTianYou/ 对CSOM(Not SSOM) Site Policy & Expiration Emai ...

  5. SharePoint\O365 "See also"功能 and site feature 激活\禁用小节

    博客地址:http://blog.csdn.net/FoxDave 最近因为问题发现了SharePoint的"See also"功能,该功能是由SharePoint自动的Feat ...

  6. Q: Why can't I access the Site Settings of my SharePoint site? 'File Not Found'

    Q: I am trying to access the Site Settings of my SharePoint site, but I get a File Not Found error, ...

  7. SharePoint Site Pages & Application Pages

    转:http://www.wcode.net/plus/view.php?aid=1582071 SharePoint一个很重要的概念就是Site Pages和Application Pages.接触 ...

  8. SharePoint 2010 产品六大功能模块

    对IT专业人员来说,新的产品,意味着新的功能,IT生产力提高的契机,更加关心如何使用新产品投入更少,产出更多.在本文中我们通过对SharePoint 2010产品的功能介绍.管理中心新功能介绍.系统新 ...

  9. SharePoint自动化系列——通过PowerShell创建SharePoint Site Collection

    通过PowerShell创建SharePoint Site Collection,代码如下: Add-PSSnapin microsoft.sharepoint.powershell function ...

随机推荐

  1. 14TH本周工作量及进度统计

      14TH本周工作量及进度统计    本周psp:                    C(类别) C(内容) S(开始时间) ST(结束时间) I(中断时间) T(实际时间) 活动 本周会议 1 ...

  2. latex 竖排子图的生成

    latex命令如下: 需要的包为: \usepackage{graphicx} \usepackage{subfigure} \begin{figure*}%加*的作用是跨栏(双栏和单栏latex的区 ...

  3. 【网络】IP地址格式转换(htonl、ntohl;inet_addr、inet_ntoa)

    1.htonl ()和ntohl( ) u_long PASCAL FAR ntohl (u_long netlong); u_short PASCAL FAR ntohs (u_short nets ...

  4. centos6.5下安装qq2012

    大家如果想在linux下用QQ的话,最好的方法就是用wine来安装.腾讯的QQ for linux用起来很坑爹. 下面就是我用wine在centOS下安装QQ.中间过程很简单. 一.安装Wine. 1 ...

  5. dos2unix 命令

    最近在学习shell编程,可是在<Linux程序设计>指定的网站上下载了源码,使用的时候却一直出问题.提示:"bash: ./here1:/bin/sh^M:损坏的解释器: 没有 ...

  6. 用margin还是padding

    用margin还是用padding这个问题是每个学习CSS进阶时的必经之路. CSS边距属性定义元素周围的空间.通过使用单独的属性,可以对上.右.下.左的外边距进行设置.也可以使用简写的外边距属性同时 ...

  7. 用 highlight.js 为文章中的代码添加语法高亮

    来源:http://www.ghostchina.com/adding-syntax-highlighting-to-ghost-using-highlight-js/ --------------- ...

  8. Windows 10系统更换Windows 7系统磁盘分区注意事项一

    新买的电脑预装系统是WIN10,考虑到兼容性问题,打算更换为WIN7,但在新机上不能直接装WIN7系统,需要在BIOS启动中做一点小改动. 原因分析:由于Windows 8采用的是UEFI引导和GPT ...

  9. b/s 猫大叔

       好复杂,要把客户端文件传到服务端,再从服务端传到FTP......肿么设计的这是....       至少你都要把客户端的文件读到服务端的内存中,因为B/S控制器在S端,不在B端 非要用B/S实 ...

  10. HashTree(哈希树) ——和trie类似,只是将字符换成了质数,sphinx用到了???

    摘自:http://blog.csdn.net/yang_yulei/article/details/46337405 哈希树的理论基础 [质数分辨定理] 简单地说就是:n个不同的质数可以" ...