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
)
参数
type
类型:Microsoft.Office.Server.UserProfiles.SuggestionType关键字或同事的帐户名。
- suggestion
类型:System.String
- weight
类型:System.Double
返回值
类型:Microsoft.Office.Server.UserProfiles.Suggestion
备注
如果该建议已存在,将更新权重。如果SuggestionStatus是Rejected,它将变为Suggested。