共用方式為


SPWeb.CreateDefaultAssociatedGroups method

建立擁有者群組。

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

Syntax

'宣告
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
    Type: System.String

    群組擁有者的使用者登入名稱。

備註

如果網站有 null 的AssociatedVisitorGroup屬性和 null AssociatedOwnerGroup屬性之前呼叫這個方法,然後就會建立在訪客群組和擁有者群組以groupNameSeed名稱。  

請參閱

參照

SPWeb class

SPWeb members

Microsoft.SharePoint namespace