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相关联的用户配置文件的名称。
type
类型:Microsoft.Office.Server.UserProfiles.OrganizationMembershipTypeOrganizationMembershipType标识的类型的成员资格。该用户是成员或领导者。