Compartir a través de


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

Sets the value of the corresponding field in the list item to the properties of the specified Term object in the default language of the TermStore object.

Espacio de nombres:  Microsoft.SharePoint.Taxonomy
Ensamblado:  Microsoft.SharePoint.Taxonomy (en Microsoft.SharePoint.Taxonomy.dll)

Sintaxis

'Declaración
Public Sub SetFieldValue ( _
    item As SPListItem, _
    term As Term _
)
'Uso
Dim instance As TaxonomyField
Dim item As SPListItem
Dim term As Term

instance.SetFieldValue(item, term)
public void SetFieldValue(
    SPListItem item,
    Term term
)

Parámetros

Excepciones

Excepción Condición
ArgumentException

One or more arguments of this method are una referencia null (Nothing en Visual Basic).

Comentarios

A Term has a maximum of one default Label for every language in the TermStore object. This method uses the same default Label (in the default language of the TermStore object )that the Term object uses by default

Vea también

Referencia

clase TaxonomyField

Miembros TaxonomyField

Sobrecarga SetFieldValue

Espacio de nombres Microsoft.SharePoint.Taxonomy

GetFieldValue

TaxonomyFieldValue

Term

Microsoft.SharePoint.Taxonomy

Microsoft.SharePoint