Class FieldValueCollection
- Namespace
- PnP.Core.Model.SharePoint
- Assembly
- PnP.Core.dll
Collection of 'special' field values
public sealed class FieldValueCollection : IFieldValueCollection
- Inheritance
-
FieldValueCollection
- Implements
- Inherited Members
Constructors
FieldValueCollection()
Default constructor
public FieldValueCollection()
FieldValueCollection(IEnumerable<IFieldValue>)
Default constructor taking in a collection of IFieldValue objects
public FieldValueCollection(IEnumerable<IFieldValue> fieldValues)
Parameters
fieldValuesIEnumerable<IFieldValue>Collection of IFieldValue objects
Properties
Values
Values in the collection
public ObservableCollection<IFieldValue> Values { get; }
Property Value
Methods
RemoveLookupValue(int)
Removes IFieldLookupValue from the collection if found
public void RemoveLookupValue(int lookupId)
Parameters
lookupIdintId of the IFieldLookupValue to remove
RemoveTaxonomyFieldValue(Guid)
Removes IFieldTaxonomyValue from the collection if found
public void RemoveTaxonomyFieldValue(Guid termId)
Parameters
termIdGuidId of the IFieldTaxonomyValue to remove