UserProfileService.RemoveColleague method

Removes a colleague for the specified account name.

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

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

Parameters

accountName
Type: System.String

The account name of the user.

colleagueAccountName
Type: System.String

The account name of the colleague to remove.

ExceptionCondition
SoapException

The colleague cannot be removed.

This method deletes the colleague specified by the colleagueAccountName parameter for the user specified by the accountName parameter.

Show: