Export (0) Print
Expand All

UserProfileService.AddColleagueWithoutEmailNotification method

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

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

[SoapDocumentMethodAttribute("http://microsoft.com/webservices/SharePointPortalServer/UserProfileService/AddColleagueWithoutEmailNotification", RequestNamespace = "http://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
	ResponseNamespace = "http://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
	Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public ContactData AddColleagueWithoutEmailNotification(
	string accountName,
	string colleagueAccountName,
	string group,
	Privacy privacy,
	bool isInWorkGroup
)

Parameters

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.

privacy
Type: WebSvcUserProfileService.Privacy

The privacy policy level of the colleague.

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.

ExceptionCondition
SoapException

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.

Community Additions

ADD
Show:
© 2014 Microsoft