(SPListItem, ICollection<Term>, Int32) del método TaxonomyField.SetFieldValue
Sets the value of the corresponding multi-value field in the list item to the properties of the Term objects in the specified collection, in the specified language.
Espacio de nombres: Microsoft.SharePoint.Taxonomy
Ensamblado: Microsoft.SharePoint.Taxonomy (en Microsoft.SharePoint.Taxonomy.dll)
Sintaxis
'Declaración
Public Sub SetFieldValue ( _
item As SPListItem, _
terms As ICollection(Of Term), _
lcid As Integer _
)
'Uso
Dim instance As TaxonomyField
Dim item As SPListItem
Dim terms As ICollection(Of Term)
Dim lcid As Integer
instance.SetFieldValue(item, terms, lcid)
public void SetFieldValue(
SPListItem item,
ICollection<Term> terms,
int lcid
)
Parámetros
item
Tipo: Microsoft.SharePoint.SPListItemThe SPListItem object whose field is to be updated.
terms
Tipo: System.Collections.Generic.ICollection<Term>The collection of Term object whose properties are to be used to update the field value.
lcid
Tipo: System.Int32The language code identifier (LCID) of the language of the default Label objects to use.
Excepciones
Excepción | Condición |
---|---|
ArgumentException | One or more arguments to this method are una referencia null (Nothing en Visual Basic), or the TaxonomyField object does not allow multiple values. |
Comentarios
Each Term has a maximum of one default Label for every language in the TermStore object. For each Term, the default Label in the default language of the TermStore object is used.
The field will be assigned aTaxonomyFieldValueCollection object.