Share via


UserProfileService.RemoveColleague method

Removes a colleague for the specified account name.

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

Syntax

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

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

Parameters

  • colleagueAccountName
    Type: System.String

    The account name of the colleague to remove.

Exceptions

Exception Condition
SoapException

The colleague cannot be removed.

Remarks

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

See also

Reference

UserProfileService class

UserProfileService members

WebSvcUserProfileService namespace