访问共享点组项目列 [英] access sharepoint group item columns
问题描述
如果我们想访问共享点列表并获取项目中的数据,我们可以这样访问:
if we want to access a sharepoint list and get data in a item we can access like this:
foreach (SPListItem item in itemcoll)
{
string modified = item["Modified"].ToString();
}
同样,要以编程方式访问 Sharepoint Group SPGroup,该怎么做?我想要加入 spgroup 的每个用户的修改后的列值.
Similarly, to access a Sharepoint Group SPGroup programmatically, how to do this? I want the modified column value for each user who joined a spgroup.
推荐答案
您的问题是查询某个组中某个用户的信息.特别是您对用户的修改"日期或他/她加入特定群组的时间感兴趣.
Your question is about querying information of some user in some group. In particular you are interested in the "modified" date of the user or when he/she joined a particular group.
我认为没有一个组的加入日期"字段,但是您可以通过查询隐藏的用户信息列表"来查询用户的扩展信息(部门、状态等)强>".
I don't think there is a field for "join date" of a group, but you can query the extended information on users (department, presence etc.) by querying the hidden "User Information list".
首先按组获取用户可以参考以下帖子:获取用户在共享点分组.
First to get users by group you can refer to the following post: get users by group in sharepoint.
要查询用户信息列表,您可以点击以下任一链接:
And to query the user information list you can follow either one of these links:
这篇关于访问共享点组项目列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!