2012-01-26 6 views
0

spolecolelction 및 관련 열거 형 (foreach 루프) Im 할 수 없습니다. 누군가 나를 안내 할 수 있습니다 .. 나는 이미 그것을 위해 stackoverflow에서 게시물을 보았습니다 ... 하지만 대답은 매우 모호합니다 .. 그러므로 이것은 샘플입니다 다시Moles + SPGroupcollection issue

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

답변