Export (0) Print
Expand All

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)

public void SetFieldValue(
	SPListItem item,
	TaxonomyFieldValue taxValue
)

Parameters

item
Type: Microsoft.SharePoint.SPListItem

The SPListItem object whose field is to be updated.

taxValue
Type: Microsoft.SharePoint.Taxonomy.TaxonomyFieldValue

The TaxonomyFieldValue object whose value is to be used to update this field.

ExceptionCondition
ArgumentException

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

Show:
© 2015 Microsoft