UserProfileService.AddMembership Method
This member is reserved for internal use and is not intended to be used directly from your code. Use the corresponding UserProfileService Web service member instead.
Namespace: Microsoft.Office.Server.UserProfiles
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Syntax
'Declaration
<WebMethodAttribute> _
Public Function AddMembership ( _
accountName As String, _
membershipInfo As MembershipData, _
group As String, _
privacy As Privacy _
) As MembershipData
'Usage
Dim instance As UserProfileService
Dim accountName As String
Dim membershipInfo As MembershipData
Dim group As String
Dim privacy As Privacy
Dim returnValue As MembershipData
returnValue = instance.AddMembership(accountName, _
membershipInfo, group, privacy)
[WebMethodAttribute]
public MembershipData AddMembership(
string accountName,
MembershipData membershipInfo,
string group,
Privacy privacy
)
Parameters
- accountName
Type: System.String
- membershipInfo
Type: Microsoft.Office.Server.UserProfiles.MembershipData
- group
Type: System.String
- privacy
Type: Microsoft.Office.Server.UserProfiles.Privacy
Return Value
Type: Microsoft.Office.Server.UserProfiles.MembershipData