UserProfileService.GetUserColleagues method

Gets the colleagues for the specified user.

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

Syntax

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

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

Parameters

Return value

Type: []
An array that contains the colleagues of the specified user.

Exceptions

Exception Condition
SoapException

The colleagues cannot be retrieved.

Remarks

This method returns the list of the colleagues for the user specified by the accountName parameter.

See also

Reference

UserProfileService class

UserProfileService members

WebSvcUserProfileService namespace