Table of Contents

Interface IFieldLinkCollection

Namespace
PnP.Core.Model.SharePoint
Assembly
PnP.Core.dll

Public interface to define a collection of FieldLink objects of SharePoint Online

public interface IFieldLinkCollection : IQueryable<IFieldLink>, IQueryable, IAsyncEnumerable<IFieldLink>, IDataModelCollection<IFieldLink>, IEnumerable<IFieldLink>, IEnumerable, IDataModelParent, IDataModelWithContext, IRequestableCollection, IDataModelCollectionLoad<IFieldLink>, IDataModelCollectionDeleteByGuidId, ISupportModules<IFieldLinkCollection>
Inherited Members
Extension Methods

Methods

Add(IField, string, bool, bool, bool, bool)

Adds a field link for the given field

IFieldLink Add(IField field, string displayName = null, bool hidden = false, bool required = false, bool readOnly = false, bool showInDisplayForm = true)

Parameters

field IField

Field to add as field link

displayName string

Display name of the field

hidden bool

Field is hidden

required bool

Field is required

readOnly bool

Field is read only

showInDisplayForm bool

Show the field in the display form

Returns

IFieldLink

added FieldLink

AddAsync(IField, string, bool, bool, bool, bool)

Adds a field link for the given field

Task<IFieldLink> AddAsync(IField field, string displayName = null, bool hidden = false, bool required = false, bool readOnly = false, bool showInDisplayForm = true)

Parameters

field IField

Field to add as field link

displayName string

Display name of the field

hidden bool

Field is hidden

required bool

Field is required

readOnly bool

Field is read only

showInDisplayForm bool

Show the field in the display form

Returns

Task<IFieldLink>

added FieldLink

AddBatch(IField)

Adds a field link via a batch

void AddBatch(IField field)

Parameters

field IField

Field to add as field link

AddBatch(Batch, IField)

Adds a field link via a batch

void AddBatch(Batch batch, IField field)

Parameters

batch Batch

Batcht to add this request to

field IField

Field to add as field link

AddBatchAsync(IField)

Adds a field link via a batch

Task AddBatchAsync(IField field)

Parameters

field IField

Field to add as field link

Returns

Task

AddBatchAsync(Batch, IField)

Adds a field link via a batch

Task AddBatchAsync(Batch batch, IField field)

Parameters

batch Batch

Batcht to add this request to

field IField

Field to add as field link

Returns

Task