Share via


UserProfileService.GetCommonManager Method

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

Namespace:  [UserProfileService Web service]
Web service reference: http://Site/_vti_bin/UserProfileService.asmx

Syntax

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

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

Parameters

Return Value

Type: [UserProfileService Web service].ContactData
The common manager that the specified user shares with the current user.

Exceptions

Exception Condition
SoapException

The manager cannot be retrieved.

Remarks

This method returns the information about the manager that the specified user and the current user have in common.

See Also

Reference

UserProfileService Class

UserProfileService Members

UserProfileService Web Service