SPWeb.CreateDefaultAssociatedGroups-Methode

Creates an owner group.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

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
)

Parameter

  • userLogin
    Typ: System.String

    The user logon name of the group owner.

  • userLogin2
    Typ: System.String

    The secondary contact for the group

  • groupNameSeed
    Typ: System.String

    The name of the group created.

Hinweise

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.

Siehe auch

Referenz

SPWeb Klasse

SPWeb-Member

Microsoft.SharePoint-Namespace