SharePoint Web Service系列: Add或Update其他各种类型的项
来源:互联网 发布:五年级体测数据 编辑:程序博客网 时间:2024/06/06 04:11
在前面,我们讨论了如何Add或Update类型为User的项。因为User类型多少比较特殊。作为SharePoint Web Service系列讨论的结束,我们将讨论各种其他类型的项如何来写。
在SDK中,有如下的一张表格。我们的写法完全是依托在此基础之上。
Name
Format
Attachments
System.Boolean
Boolean
System.Boolean
Calculated
N/A
Choice
System.String
Computed
N/A
Counter
System.Int32
CrossProjectLink
System.Boolean
Currency
System.Double
DateTime
System.DateTime
GridChoice
System.String
Guid
System.Guid
Integer
System.Int32
Lookup
System.String
MaxItems
System.Int32
ModStat
System.Int32
MultiChoice
System.String
Note
System.String
Number
System.Double
Recurrence
System.Boolean
Text
System.String
Threading
System.String
URL
System.String, System.String
User
System.String
这张表格显示了在WSS中的各种字段类型与.NET中对应的数据类型的对照关系。根据这个,我们就可以方便的写出<Field>元素中的内容了。
比如,我们现在要Add或Update一个URL类型的字段。可以这样书写Field:
该例中某列表项的SomeUrl字段是链接类型的,我们要写一个链接到这个字段。该链接的地址为“http://www.example.com”,标题为“Example” 。
注意:对于链接类型的字段,由于标题可以不填。(这样系统会默认以地址的内容作标题,这一点和许多文本编辑器相同。)所以上面的例子也可以这样写:
再如,我们现在要Add或Update一个选项类型的字段。可以这样书写Field:
任务列表中的状态字段就是选项类型的,由于其对应的是System.String,所以可以直接这么写。
- SharePoint Web Service系列: Add或Update其他各种类型的项
- SharePoint Web Service系列: Add或Update类型为User的项
- SharePoint Web Service系列:进行列表的增删改
- SharePoint Web Service系列:获取文档的属性信息
- SharePoint Web Service系列:获取文档的属性信息
- SharePoint Web Service系列:编写自定义SharePoint Web Services之一
- SharePoint Web Service系列:编写自定义SharePoint Web Services之一
- SharePoint Web Service的身份验证
- SharePoint Web Service的身份验证
- SharePoint Web Service系列:编写自定义SharePoint Web Services之二
- SharePoint Web Service系列:编写自定义SharePoint Web Services之二
- Add Service References 和 Add Web References的区别
- 步步为营 SharePoint 开发学习笔记系列 九、SharePoint web service 开发(上)
- 步步为营 SharePoint 开发学习笔记系列 十、SharePoint web service 开发(下)
- SharePoint web service 介紹(1)
- SharePoint : 为WSS或者MOSS编写自定义的Web Service
- 介绍一个测试SharePoint search web service的工具
- 关于java调用SharePoint 自带的Web Service
- 水滴石穿C语言之声明的语法
- SharePoint Web Service系列:获取文档的属性信息
- SharePoint Web Service系列: Add或Update类型为User的项
- SharePoint Web Service系列:编写自定义SharePoint Web Services之二
- 水滴石穿C语言之正确使用const
- SharePoint Web Service系列: Add或Update其他各种类型的项
- SharePoint Web Service系列:编写自定义SharePoint Web Services之一
- 水滴石穿C语言之指针、数组和函数
- 学习SharePoint你需要什么?
- 水滴石穿C语言之指针综合谈
- WSS3SDK之:Mobile页面
- WSS3SDK之:Mobile页面
- WSS3SDK之:Mobile开发中的省略号与渲染限制
- WSS3SDK之:Mobile开发中的省略号与渲染限制