Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates an owner group.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Sub CreateDefaultAssociatedGroups ( _
userLogin As String, _
userLogin2 As String, _
groupNameSeed As String _
)
'Usage
Dim instance As SPWeb
Dim userLogin As String
Dim userLogin2 As String
Dim groupNameSeed As String
instance.CreateDefaultAssociatedGroups(userLogin, _
userLogin2, groupNameSeed)
public void CreateDefaultAssociatedGroups(
string userLogin,
string userLogin2,
string groupNameSeed
)
Parameters
userLogin
Type: System.StringThe user logon name of the group owner.
userLogin2
Type: System.StringThe secondary contact for the group
groupNameSeed
Type: System.StringThe name of the group created.
Remarks
If the website has a null AssociatedVisitorGroup property and a null AssociatedOwnerGroup property before you call this method then it will create a visitor group and an owner group with the groupNameSeed name.