Share via


Term.AddAssociation method

Associates a term with the current hash tag and saves the name of the user who makes the association.

Namespace:  Microsoft.SharePoint.Taxonomy
Assembly:  Microsoft.SharePoint.Taxonomy (in Microsoft.SharePoint.Taxonomy.dll)

Syntax

'Declaration
Public Sub AddAssociation ( _
    termId As Guid, _
    userName As String _
)
'Usage
Dim instance As Term
Dim termId As Guid
Dim userName As String

instance.AddAssociation(termId, userName)
public void AddAssociation(
    Guid termId,
    string userName
)

Parameters

  • termId
    Type: System.Guid

    The ID of the term to be added.

  • userName
    Type: System.String

    The name of the user who adds the term association.

See also

Reference

Term class

Term members

Microsoft.SharePoint.Taxonomy namespace