ProfileValueCollectionBase.AddTaxonomyTerm method

Adds a new taxonomy term to the collection, if this is a taxonomic property.

Namespace:  Microsoft.Office.Server.UserProfiles
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

Syntax

'Declaration
<PermissionSetAttribute(SecurityAction.LinkDemand, Name := "FullTrust")> _
Public Function AddTaxonomyTerm ( _
    term As Term _
) As Integer
'Usage
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
)

Parameters

Return value

Type: System.Int32

Remarks

Returns the index of the term in the list, or -1 if the term already exists. Returns 0 if this is not a taxonomic property.

See also

Reference

ProfileValueCollectionBase class

ProfileValueCollectionBase members

Microsoft.Office.Server.UserProfiles namespace