다음을 통해 공유


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

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.

See Also

Reference

SuggestionManager Class

SuggestionManager Members

Add Overload

Microsoft.Office.Server.UserProfiles Namespace