About Me

My photo
a Dynamic and Energetic guy.....

Wednesday, August 20, 2008

Get E-mails of all users in a SPGroup

SPWeb web = site.AllWebs

[ConfigurationManager.AppSettings["WEB_SITE"].ToString()];
SPGroup group = web.Groups[0];
SPUserCollection MLUserGroup = web.SiteUsers;
String strUserGroupName = MLUserGroup.GetByID(27).Groups[0].Name

No comments:

My Masters