我想要mole spgroupcolelction和相关的枚举(foreach循环)我不能做so..can有人在这里引导我..我已经在it...but的stackoverflow中看到了post,答案非常模糊..因此再次发帖
SPGroupCollection sharePointGroupCollection = contextWeb.Groups;
foreach (SPGroup sharePointGroup in sharePointGroupCollection)
{
if (groupname == sharePointGroup.Name)
{
//My logic.
}
}发布于 2012-03-13 15:44:22
这是一个示例,你可以在网站上看到具体的答案。
.
MGridViewRow gvRow = new MGridViewRow();
MGridViewRowCollection rowCol = new MGridViewRowCollection()
{
GetEnumerator = () => {
return new GridViewRow[] {
gvRow
}.GetEnumerator();
}
};https://stackoverflow.com/questions/9022736
复制相似问题