Export (0) Print
Expand All

UserProfileService.AddSuggestions method

Adds a list of suggestions with a single specified type and the specified weights for the current user.

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

[SoapDocumentMethodAttribute("http://microsoft.com/webservices/SharePointPortalServer/UserProfileService/AddSuggestions", RequestNamespace = "http://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
	ResponseNamespace = "http://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
	Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void AddSuggestions(
	SuggestionType type,
	string[] suggestions,
	double[] weights
)

Parameters

type
Type: WebSvcUserProfileService.SuggestionType

The type of suggestions to add.

suggestions
Type: []

An array of suggestions to add.

weights
Type: []

An array of weights for the suggestions.

ExceptionCondition
SoapException

The list cannot be added.

This method retrieves the users’ account names from user profiles if the suggestions are given by email addresses, and then adds the list of suggestions with the same specified suggestion type and the specified weights to the suggestions of the current user.

Community Additions

ADD
Show:
© 2014 Microsoft