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)

Syntax

'Declaration
<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 Sub AddSuggestions ( _
    type As SuggestionType, _
    suggestions As String(), _
    weights As Double() _
)
'Usage
Dim instance As UserProfileService
Dim type As SuggestionType
Dim suggestions As String()
Dim weights As Double()

instance.AddSuggestions(type, suggestions, _
    weights)
[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

  • suggestions
    Type: []

    An array of suggestions to add.

  • weights
    Type: []

    An array of weights for the suggestions.

Exceptions

Exception Condition
SoapException

The list cannot be added.

Remarks

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.

See also

Reference

UserProfileService class

UserProfileService members

WebSvcUserProfileService namespace