Share via


UserProfileService.AddColleague Method

Namespace:  websvcUserProfileService
Assembly:  MOSSSOAP (in MOSSSOAP.dll)

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/AddColleague", RequestNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",  _
    ResponseNamespace := "https://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("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/AddColleague", RequestNamespace = "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
    ResponseNamespace = "https://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

Return Value

Type: websvcUserProfileService.ContactData

See Also

Reference

UserProfileService Class

UserProfileService Members

websvcUserProfileService Namespace