Interface IAttachmentCollection
Collection of list item attachments
Assembly: PnP.Core.dll
Syntax
public interface IAttachmentCollection : IDataModelCollection<IAttachment>, IDataModelParent, IDataModelWithContext, IRequestableCollection, ISupportModules<IAttachment>
Methods
Adds a list item attachment
Declaration
IAttachment Add(string name, Stream content)
Parameters
System.String
name
Name of the list item attachment
|
Stream
content
File contents
|
Returns
Adds a list item attachment
Declaration
Task<IAttachment> AddAsync(string name, Stream content)
Parameters
System.String
name
Name of the list item attachment
|
Stream
content
File contents
|
Returns
Extension Methods