On Sep 26, 9:53 pm, "Fao, Sean" <enceladus...@yahoo.comI-WANT-NO-SPAM>
wrote:
> I was wondering if there was any way to programmatically determine
> whether or not a group exists in SharePoint. I checked the
> SPGroupCollection in the SPWeb.SiteGroups property and didn't see any
> methods for doing lookups. I could obviously write my own code that
> loops through each group, but I was wondering if there was an
> easier/cleaner way to accomplish this task.
>
> Thank you in advance,
>
> --
> Sean
what about loop?
foreach(SPGroup spGroup in spWeb.SiteGroups)
{
....
}
|