Partilhar via


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(String)

TaxonomyFieldValue

Microsoft.SharePoint.Taxonomy

Microsoft.SharePoint