ClientContext ctxcontext = new ClientContext("http://peakfinders/");  
GroupCollection ctxgroup = ctxcontext.Web.SiteGroups;  
// Assume that there is a "Manager" group, and the ID=2.  
Group strgroup = ctxgroup.GetById(2);  
ctxcontext.Load(strgroup.Users);  
ctxcontext.ExecuteQuery(); 
foreach (User ouser in strgroup.Users)  
{ 
 
console.WriteLine(ouser.Title); 
}
 
 
 
 Posts
Posts
 
 
 
 
No comments:
Post a Comment