OrganizationProfile.AddMember 方法 (String, OrganizationMembershipType)

请注意:此 API 现在已过时。

将指定的用户配置文件添加到此OrganizationProfile对象。

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

语法

声明
<ObsoleteAttribute("This class is no longer supported.")> _
Public Sub AddMember ( _
    strAccountName As String, _
    type As OrganizationMembershipType _
)
用法
Dim instance As OrganizationProfile
Dim strAccountName As String
Dim type As OrganizationMembershipType

instance.AddMember(strAccountName, type)
[ObsoleteAttribute("This class is no longer supported.")]
public void AddMember(
    string strAccountName,
    OrganizationMembershipType type
)

参数

  • strAccountName
    类型:System.String

    相关联的用户配置文件的名称。

另请参阅

引用

OrganizationProfile 类

OrganizationProfile 成员

AddMember 重载

Microsoft.Office.Server.UserProfiles 命名空间