SuggestionManager.Add 方法 (SuggestionType, String, Double)

添加有关用户与指定的类型、 字符串和重量的建议。

命名空间:  Microsoft.Office.Server.UserProfiles
程序集:  Microsoft.Office.Server.UserProfiles(位于 Microsoft.Office.Server.UserProfiles.dll 中)

语法

声明
Public Function Add ( _
    type As SuggestionType, _
    suggestion As String, _
    weight As Double _
) As Suggestion
用法
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
)

参数

返回值

类型:Microsoft.Office.Server.UserProfiles.Suggestion

备注

如果该建议已存在,将更新权重。如果SuggestionStatus是Rejected,它将变为Suggested。

另请参阅

引用

SuggestionManager 类

SuggestionManager 成员

Add 重载

Microsoft.Office.Server.UserProfiles 命名空间