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
fieldIFieldField to add as field link
displayNamestringDisplay name of the field
hiddenboolField is hidden
requiredboolField is required
readOnlyboolField is read only
showInDisplayFormboolShow 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
fieldIFieldField to add as field link
displayNamestringDisplay name of the field
hiddenboolField is hidden
requiredboolField is required
readOnlyboolField is read only
showInDisplayFormboolShow 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
fieldIFieldField to add as field link
AddBatch(Batch, IField)
Adds a field link via a batch
void AddBatch(Batch batch, IField field)
Parameters
AddBatchAsync(IField)
Adds a field link via a batch
Task AddBatchAsync(IField field)
Parameters
fieldIFieldField to add as field link
Returns
AddBatchAsync(Batch, IField)
Adds a field link via a batch
Task AddBatchAsync(Batch batch, IField field)