SPGroup.AddUser 方法 (String, String, String, String)

添加的用户的指定的特定用户名称、 电子邮件地址、 显示名称和到组的说明。

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

语法

声明
Public Sub AddUser ( _
    loginName As String, _
    email As String, _
    name As String, _
    notes As String _
)
用法
Dim instance As SPGroup
Dim loginName As String
Dim email As String
Dim name As String
Dim notes As String

instance.AddUser(loginName, email, name, _
    notes)
public void AddUser(
    string loginName,
    string email,
    string name,
    string notes
)

参数

  • loginName
    类型:System.String

    要添加的用户的用户名 (DOMAIN\User_Alias) 到组。

  • email
    类型:System.String

    要添加的用户的电子邮件地址向组。

  • name
    类型:System.String

    要添加的用户的显示名称到组。

  • notes
    类型:System.String

    为用户要添加的备注到组。

另请参阅

引用

SPGroup 类

SPGroup 成员

AddUser 重载

Microsoft.SharePoint 命名空间