Table of Contents

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

fieldValues IEnumerable<IFieldValue>

Collection of IFieldValue objects

Properties

Values

Values in the collection

public ObservableCollection<IFieldValue> Values { get; }

Property Value

ObservableCollection<IFieldValue>

Methods

RemoveLookupValue(int)

Removes IFieldLookupValue from the collection if found

public void RemoveLookupValue(int lookupId)

Parameters

lookupId int

Id of the IFieldLookupValue to remove

RemoveTaxonomyFieldValue(Guid)

Removes IFieldTaxonomyValue from the collection if found

public void RemoveTaxonomyFieldValue(Guid termId)

Parameters

termId Guid

Id of the IFieldTaxonomyValue to remove