SPWeb.CreateDefaultAssociatedGroups 方法

Creates an owner group.

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Sub CreateDefaultAssociatedGroups ( _
    userLogin As String, _
    userLogin2 As String, _
    groupNameSeed As String _
)
用法
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
)

参数

  • userLogin
    类型:System.String

    The user logon name of the group owner.

  • userLogin2
    类型:System.String

    The secondary contact for the group

  • groupNameSeed
    类型:System.String

    The name of the group created.

备注

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.

另请参阅

引用

SPWeb 类

SPWeb 成员

Microsoft.SharePoint 命名空间