UserProfileService.AddColleague Method

Web Service: User ProfileWeb Reference: http://<Site>/_vti_bin/UserProfileService.asmx

Syntax

'Declaration
<SoapDocumentMethodAttribute("http://microsoft.com/webservices/SharePointPortalServer/UserProfileService/AddColleague", RequestNamespace:="http://microsoft.com/webservices/SharePointPortalServer/UserProfileService", ResponseNamespace:="http://microsoft.com/webservices/SharePointPortalServer/UserProfileService", Use:=SoapBindingUse.Literal, ParameterStyle:=SoapParameterStyle.Wrapped)> _
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)
[SoapDocumentMethodAttribute("http://microsoft.com/webservices/SharePointPortalServer/UserProfileService/AddColleague", RequestNamespace="http://microsoft.com/webservices/SharePointPortalServer/UserProfileService", ResponseNamespace="http://microsoft.com/webservices/SharePointPortalServer/UserProfileService", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped)] 
public ContactData AddColleague (
    string accountName,
    string colleagueAccountName,
    string group,
    Privacy privacy,
    bool isInWorkGroup
)

Parameters

  • accountName
  • colleagueAccountName
  • group
  • privacy
  • isInWorkGroup

See Also

Reference

UserProfileService Class
UserProfileService Members
User Profile Web Service