コード例 #1
0
 public static SPGroup EnsureGroup(this SPWeb web, string groupName, SPMember owner = null, SPUser defaultUser = null, string groupDescription = null)
 {
     return(web.TryGetGroup(groupName) ?? web.AddGroup(groupName, owner, defaultUser, groupDescription));
 }