다음을 통해 공유


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