xxxxxxxxxx
var clientContext = CreateClientContext(targetUrl);
var web = clientContext.Web;
clientContext.Load(web, w => w.Title, w => w.Id, w => w.Url, w => w.Language,
w => w.AssociatedMemberGroup, w => w.AssociatedOwnerGroup, w => w.AssociatedVisitorGroup);
clientContext.ExecuteQuery();
var associatedOwnerGroup = web.AssociatedOwnerGroup;
var associatedMemberGroup = web.AssociatedMemberGroup;
var associatedVisitorGroup = web.AssociatedVisitorGroup;