UserProfileService.GetCommonColleagues method

Gets the common colleagues that the specified user shares with the current user.

Namespace:  WebSvcUserProfileService
Assembly:  UserProfileServices (in UserProfileServices.dll)

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/GetCommonColleagues", RequestNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",  _
    ResponseNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function GetCommonColleagues ( _
    accountName As String _
) As ContactData()
'Usage
Dim instance As UserProfileService
Dim accountName As String
Dim returnValue As ContactData()

returnValue = instance.GetCommonColleagues(accountName)
[SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/GetCommonColleagues", RequestNamespace = "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
    ResponseNamespace = "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public ContactData[] GetCommonColleagues(
    string accountName
)

Parameters

Return value

Type: []
An array that contains the information about the common colleagues that the specified user shares with the current user.

Exceptions

Exception Condition
SoapException

The colleagues cannot be retrieved.

Remarks

This method returns the list of colleagues that the specified user and the current user have in common.

See also

Reference

UserProfileService class

UserProfileService members

WebSvcUserProfileService namespace