TaxonomyField.SetFieldValue method (SPListItem, TaxonomyFieldValue)

Sets the value of the corresponding field in the list item to the value of the specified TaxonomyFieldValue object.

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

Syntax

'Declaration
Public Sub SetFieldValue ( _
    item As SPListItem, _
    taxValue As TaxonomyFieldValue _
)
'Usage
Dim instance As TaxonomyField
Dim item As SPListItem
Dim taxValue As TaxonomyFieldValue

instance.SetFieldValue(item, taxValue)
public void SetFieldValue(
    SPListItem item,
    TaxonomyFieldValue taxValue
)

Parameters

Exceptions

Exception Condition
ArgumentException

One or more of the arguments to this method are a null reference (Nothing in Visual Basic).

See also

Reference

TaxonomyField class

TaxonomyField members

SetFieldValue overload

Microsoft.SharePoint.Taxonomy namespace

GetFieldValue

TaxonomyFieldValue

Microsoft.SharePoint.Taxonomy

Microsoft.SharePoint