Compartir a través de


(SPListItem, ICollection<Term>) del método TaxonomyField.SetFieldValue

Sets the value of the corresponding multi-value field in the list item to the properties of the T:Microsoft.SharePoint.Taxonomy.Term objects in the specified collection.

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) _
)
'Uso
Dim instance As TaxonomyField
Dim item As SPListItem
Dim terms As ICollection(Of Term)

instance.SetFieldValue(item, terms)
public void SetFieldValue(
    SPListItem item,
    ICollection<Term> terms
)

Parámetros

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 is used.

The field will be assigned a TaxonomyFieldValueCollection object.

Vea también

Referencia

clase TaxonomyField

Miembros TaxonomyField

Sobrecarga SetFieldValue

Espacio de nombres Microsoft.SharePoint.Taxonomy

GetFieldValue(String)

AllowMultipleValues

TaxonomyFieldValue

Term

Microsoft.SharePoint.Taxonomy

Microsoft.SharePoint