UserProfileService.AddColleagueWithoutEmailNotification method

Adds a colleague for the specified account name without sending the email notification.

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


<SoapDocumentMethodAttribute("", RequestNamespace := "",  _
    ResponseNamespace := "",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function AddColleagueWithoutEmailNotification ( _
    accountName As String, _
    colleagueAccountName As String, _
    group As String, _
    privacy As Privacy, _
    isInWorkGroup As Boolean _
) As ContactData
Dim instance As UserProfileService
Dim accountName As String
Dim colleagueAccountName As String
Dim group As String
Dim privacy As Privacy
Dim isInWorkGroup As Boolean
Dim returnValue As ContactData

returnValue = instance.AddColleagueWithoutEmailNotification(accountName, _
    colleagueAccountName, group, privacy, _
[SoapDocumentMethodAttribute("", RequestNamespace = "", 
    ResponseNamespace = "", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public ContactData AddColleagueWithoutEmailNotification(
    string accountName,
    string colleagueAccountName,
    string group,
    Privacy privacy,
    bool isInWorkGroup


  • accountName
    Type: System.String

    The account name of the user to add a colleague to.

  • colleagueAccountName
    Type: System.String

    The account name of the colleague to add.

  • group
    Type: System.String

    The group to which the colleague is added as a member.

  • isInWorkGroup
    Type: System.Boolean

    true to indicate that the colleague should be part of a work group; otherwise, false.

Return value

Type: WebSvcUserProfileService.ContactData
The newly added colleague.


Exception Condition

The colleague cannot be added.


This method adds a new colleague with specified information for the user specified by the accountName parameter without sending email notification to the user, and then returns the information about the new colleague.

See also


UserProfileService class

UserProfileService members

WebSvcUserProfileService namespace