SuggestionManager.Add Method (SuggestionType, String, Double)
Adds a suggestion for the user with the specified type, string, and weight.
Namespace: Microsoft.Office.Server.UserProfiles
Assembly: Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
Syntax
'Declaration
Public Function Add ( _
type As SuggestionType, _
suggestion As String, _
weight As Double _
) As Suggestion
'Usage
Dim instance As SuggestionManager
Dim type As SuggestionType
Dim suggestion As String
Dim weight As Double
Dim returnValue As Suggestion
returnValue = instance.Add(type, suggestion, _
weight)
public Suggestion Add(
SuggestionType type,
string suggestion,
double weight
)
Parameters
type
Type: Microsoft.Office.Server.UserProfiles.SuggestionTypeEither a keyword or the account name of a colleague.
- suggestion
Type: System.String
- weight
Type: System.Double
Return Value
Type: Microsoft.Office.Server.UserProfiles.Suggestion
Remarks
If the suggestion already exists, the weight will be updated. If the SuggestionStatus is Rejected, it will change to Suggested.