TaxonomyField.SetFieldValueByValue method
Sets the value of the corresponding field in the list item to the value of the specified TaxonomyFieldValue object.
Namespace: Microsoft.SharePoint.Client.Taxonomy
Assembly: Microsoft.SharePoint.Client.Taxonomy (in Microsoft.SharePoint.Client.Taxonomy.dll)
Syntax
'Declaration
Public Sub SetFieldValueByValue ( _
item As ListItem, _
taxValue As TaxonomyFieldValue _
)
'Usage
Dim instance As TaxonomyField
Dim item As ListItem
Dim taxValue As TaxonomyFieldValue
instance.SetFieldValueByValue(item, taxValue)
public void SetFieldValueByValue(
ListItem item,
TaxonomyFieldValue taxValue
)
Parameters
item
Type: Microsoft.SharePoint.Client.ListItemThe SPListItem object whose field is to be updated.
taxValue
Type: Microsoft.SharePoint.Client.Taxonomy.TaxonomyFieldValueThe TaxonomyFieldValue object whose value is to be used to update this field.
See also
Reference
Microsoft.SharePoint.Client.Taxonomy namespace
GetFieldValue