Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
item
Type: Microsoft.SharePoint.SPListItemThe SPListItem object whose field is to be updated.
taxValue
Type: Microsoft.SharePoint.Taxonomy.TaxonomyFieldValueThe TaxonomyFieldValue object whose value is to be used to update this field.
Exceptions
Exception | Condition |
---|---|
ArgumentException | One or more of the arguments to this method are a null reference (Nothing in Visual Basic). |