Table of Contents

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

name string

Name of the list item attachment

content Stream

File contents

Returns

IAttachment

The added list item attachment

AddAsync(string, Stream)

Adds a list item attachment

Task<IAttachment> AddAsync(string name, Stream content)

Parameters

name string

Name of the list item attachment

content Stream

File contents

Returns

Task<IAttachment>

The added list item attachment