Interface IAttachmentCollection
- Namespace
- PnP.Core.Model.SharePoint
- Assembly
- PnP.Core.dll
Collection of list item attachments
public interface IAttachmentCollection : IQueryable<IAttachment>, IQueryable, IDataModelCollection<IAttachment>, IEnumerable<IAttachment>, IEnumerable, IDataModelParent, IDataModelWithContext, IRequestableCollection, ISupportModules<IAttachment>
- Inherited Members
- Extension Methods
Methods
Add(string, Stream)
Adds a list item attachment
IAttachment Add(string name, Stream content)
Parameters
Returns
- IAttachment
The added list item attachment
AddAsync(string, Stream)
Adds a list item attachment
Task<IAttachment> AddAsync(string name, Stream content)
Parameters
Returns
- Task<IAttachment>
The added list item attachment