Share via


UserProfileService.AddColleague 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 AddColleague ( _
    accountName As String, _
    colleagueAccountName As String, _
    group As String, _
    privacy As Privacy, _
    isInWorkGroup As Boolean _
) As ContactData
'Usage
Dim instance As UserProfileService
Dim accountName As String
Dim colleagueAccountName As String
Dim group As String
Dim privacy As Privacy
Dim isInWorkGroup As Boolean
Dim returnValue As ContactData

returnValue = instance.AddColleague(accountName, _
    colleagueAccountName, group, privacy, _
    isInWorkGroup)
[WebMethodAttribute]
public ContactData AddColleague(
    string accountName,
    string colleagueAccountName,
    string group,
    Privacy privacy,
    bool isInWorkGroup
)

Parameters

Return Value

Type: Microsoft.Office.Server.UserProfiles.ContactData

See Also

Reference

UserProfileService Class

UserProfileService Members

Microsoft.Office.Server.UserProfiles Namespace