一个API,介绍如何通过客户端对象模型从一个SharePoint 2010列表中获取选项字段的值。

下面就是具体实现方式-

FieldChoice myChoicesfield = clientContext.CastTo<FieldChoice> list.Fields[ "mychoicefiled"];

myChoicesfield.Choices  – >将返回所有的可选项

myChoicesfield.DefaultValue  -> 将得到默认选项的值

参考资料

Get choice field values using client object model sharepoint 2010

相关文章:

  • 2021-11-28
  • 2021-06-29
  • 2021-10-09
  • 2022-01-30
  • 2021-06-02
  • 2021-05-30
  • 2021-07-05
  • 2022-01-24
猜你喜欢
  • 2021-07-28
  • 2021-10-09
  • 2022-12-23
  • 2022-02-04
  • 2022-01-30
  • 2022-01-05
  • 2022-02-01
相关资源
相似解决方案