设置中指定的集合中指定的语言的Term对象的属性列表项中的对应的多值字段的值。
命名空间: Microsoft.SharePoint.Client.Taxonomy
程序集: Microsoft.SharePoint.Client.Taxonomy.Silverlight(位于 Microsoft.SharePoint.Client.Taxonomy.Silverlight.dll 中); Microsoft.SharePoint.Client.Taxonomy.Phone(位于 Microsoft.SharePoint.Client.Taxonomy.Phone.dll 中) Microsoft.SharePoint.Client.Taxonomy(位于 Microsoft.SharePoint.Client.Taxonomy.dll 中)
语法
声明
Public Sub SetFieldValueByCollection ( _
item As ListItem, _
terms As Collection(Of Term), _
lcid As Integer _
)
用法
Dim instance As TaxonomyField
Dim item As ListItem
Dim terms As Collection(Of Term)
Dim lcid As Integer
instance.SetFieldValueByCollection(item, _
terms, lcid)
public void SetFieldValueByCollection(
ListItem item,
Collection<Term> terms,
int lcid
)
参数
item
类型:Microsoft.SharePoint.Client.ListItem要更新其字段SPListItem对象。
terms
类型:System.Collections.ObjectModel.Collection<Term>其属性是用于更新字段值的Term对象的集合。
lcid
类型:System.Int32语言代码标识符 (LCID) 要使用的默认Label对象的语言。
异常
| 异常 | 条件 |
|---|---|
| ArgumentException | 对此方法的一个或多个参数是空引用(无 在 Visual Basic 中),或TaxonomyField对象不允许多个值。 |
备注
每个TermTermStore对象中有一个默认Label每种语言的最大值。对于每个Term,使用默认LabelTermStore对象的默认语言。
该字段将被分配TaxonomyFieldValueCollection对象。
另请参阅
引用
Microsoft.SharePoint.Client.Taxonomy 命名空间
GetFieldValue
AllowMultipleValues