ProfileValueCollectionBase.AddTaxonomyTerm 方法

将新分类术语添加到集合中,如果这是一个分类的属性)。

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

语法

声明
<PermissionSetAttribute(SecurityAction.LinkDemand, Name := "FullTrust")> _
Public Function AddTaxonomyTerm ( _
    term As Term _
) As Integer
用法
Dim instance As ProfileValueCollectionBase
Dim term As Term
Dim returnValue As Integer

returnValue = instance.AddTaxonomyTerm(term)
[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]
public int AddTaxonomyTerm(
    Term term
)

参数

返回值

类型:System.Int32

备注

返回在列表中,则为-1 这一术语的索引 ; 如果期限已存在。返回 0,如果这不是一个分类属性。

另请参阅

引用

ProfileValueCollectionBase 类

ProfileValueCollectionBase 成员

Microsoft.Office.Server.UserProfiles 命名空间