【问题标题】:Moles + SPGroupcollection issueMoles + SPGroupcollection 问题
【发布时间】:2012-01-26 17:45:27
【问题描述】:

我想摩尔 spgroupcolelction 和相关的枚举(foreach 循环) 我无法这样做..有人可以在这里指导我.. 我已经在stackoverflow中看到了它的帖子......但答案很模糊...... 因此再次发布

SPGroupCollection sharePointGroupCollection = contextWeb.Groups; 
foreach (SPGroup sharePointGroup in sharePointGroupCollection) 
{ 
    if (groupname == sharePointGroup.Name) 
    { 
         //My logic.
    } 
}

【问题讨论】:

    标签: moles


    【解决方案1】:

    这是一个示例,您将在网站上看到对此的具体答案。
    [http://qwuizno.com/Pages/Applications/Operations/ForumControler.aspx]

            MGridViewRow gvRow = new MGridViewRow();
    
            MGridViewRowCollection rowCol = new MGridViewRowCollection()
            {
                GetEnumerator = () => {
                    return new GridViewRow[] {
                        gvRow
                    }.GetEnumerator();
                }
            };
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-04-10
      • 2011-08-23
      • 2011-06-01
      相关资源
      最近更新 更多