Share via


OrganizationProfile.AddMember method (String, OrganizationMembershipType)

NOTE: This API is now obsolete.

Adds the specified user profile to this OrganizationProfile object.

Namespace:  Microsoft.Office.Server.UserProfiles
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

Syntax

'Declaration
<ObsoleteAttribute("This class is no longer supported.")> _
Public Sub AddMember ( _
    strAccountName As String, _
    type As OrganizationMembershipType _
)
'Usage
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
)

Parameters

  • strAccountName
    Type: System.String

    The name associated with the user profile.

See also

Reference

OrganizationProfile class

OrganizationProfile members

AddMember overload

Microsoft.Office.Server.UserProfiles namespace