Search Results for

    Show / Hide Table of Contents

    Interface IAttachment

    A list item attachment

    Inherited Members
    IDataModel<IAttachment>.Requested
    IDataModel<IAttachment>.HasValue(String)
    IDataModel<IAttachment>.HasChanged(String)
    IDataModel<IAttachment>.IsPropertyAvailable(Expression<Func<IAttachment, Object>>)
    IDataModel<IAttachment>.ArePropertiesAvailable(Expression<Func<IAttachment, Object>>[])
    IDataModel<IAttachment>.EnsureProperties(Expression<Func<IAttachment, Object>>[])
    IDataModel<IAttachment>.EnsurePropertiesAsync(Expression<Func<IAttachment, Object>>[])
    IDataModel<IAttachment>.ExecuteRequestAsync(ApiRequest)
    IDataModel<IAttachment>.ExecuteRequest(ApiRequest)
    IDataModel<IAttachment>.ExecuteRequestBatchAsync(ApiRequest)
    IDataModel<IAttachment>.ExecuteRequestBatch(ApiRequest)
    IDataModel<IAttachment>.ExecuteRequestBatchAsync(Batch, ApiRequest)
    IDataModel<IAttachment>.ExecuteRequestBatch(Batch, ApiRequest)
    IDataModelParent.Parent
    IDataModelWithContext.PnPContext
    IDataModelGet<IAttachment>.GetBatchAsync(Batch, Expression<Func<IAttachment, Object>>[])
    IDataModelGet<IAttachment>.GetAsync(Expression<Func<IAttachment, Object>>[])
    IDataModelUpdate.UpdateBatchAsync()
    IDataModelUpdate.UpdateBatchAsync(Batch)
    IDataModelUpdate.UpdateAsync()
    IDataModelUpdate.UpdateBatch()
    IDataModelUpdate.UpdateBatch(Batch)
    IDataModelUpdate.Update()
    IDataModelDelete.DeleteBatchAsync()
    IDataModelDelete.DeleteBatchAsync(Batch)
    IDataModelDelete.DeleteAsync()
    IDataModelDelete.DeleteBatch()
    IDataModelDelete.DeleteBatch(Batch)
    IDataModelDelete.Delete()
    Namespace: PnP.Core.Model.SharePoint
    Assembly: PnP.Core.dll
    Syntax
    public interface IAttachment : IDataModel<IAttachment>, IDataModelParent, IDataModelWithContext, ISupportModules<IAttachment>, IDataModelGet<IAttachment>, IDataModelUpdate, IDataModelDelete, IQueryableDataModel

    Properties

    All

    A special property used to add an asterisk to a $select statement

    Declaration
    object All { get; }
    Property Value
    System.Object

    FileName

    Name of the attachment

    Declaration
    string FileName { get; set; }
    Property Value
    System.String

    FileNameAsPath

    Name of the attachment as path

    Declaration
    string FileNameAsPath { get; set; }
    Property Value
    System.String

    ServerRelativePath

    Server relative URL of the attachment as path

    Declaration
    string ServerRelativePath { get; set; }
    Property Value
    System.String

    ServerRelativeUrl

    Server relative URL of the attachment

    Declaration
    string ServerRelativeUrl { get; set; }
    Property Value
    System.String

    Methods

    GetContent(Boolean)

    Get the content of this attachment.

    Declaration
    Stream GetContent(bool streamContent = false)
    Parameters
    System.Boolean streamContent

    Already return the content before all bytes are read, needed for large file downloads

    Returns
    Stream

    Stream containing the binary content of the attachment

    GetContentAsync(Boolean)

    Get the content of this attachment.

    Declaration
    Task<Stream> GetContentAsync(bool streamContent = false)
    Parameters
    System.Boolean streamContent

    Already return the content before all bytes are read, needed for large file downloads

    Returns
    Task<Stream>

    Stream containing the binary content of the attachment

    GetContentBytes()

    Get the content of the attachment.

    Declaration
    byte[] GetContentBytes()
    Returns
    System.Byte[]

    The binary content of the attachment

    GetContentBytesAsync()

    Get the content of this attachment.

    Declaration
    Task<byte[]> GetContentBytesAsync()
    Returns
    Task<System.Byte[]>

    The binary content of the attachment

    Recycle()

    Recycle this list attachment

    Declaration
    void Recycle()

    RecycleAsync()

    Recycle this list attachment

    Declaration
    Task RecycleAsync()
    Returns
    Task

    Extension Methods

    DataModelGetExtensions.GetBatchAsync<TModel>(IDataModelGet<TModel>, Expression<Func<TModel, Object>>[])
    DataModelGetExtensions.GetBatchAsync<TModel>(IDataModelGet<TModel>, Batch, Expression<Func<TModel, Object>>[])
    DataModelGetExtensions.GetBatch<TModel>(IDataModelGet<TModel>, Batch, Expression<Func<TModel, Object>>[])
    DataModelGetExtensions.GetBatch<TModel>(IDataModelGet<TModel>, Expression<Func<TModel, Object>>[])
    DataModelGetExtensions.Get<TModel>(IDataModelGet<TModel>, Expression<Func<TModel, Object>>[])
    RequestModuleExtensions.WithHeaders<TModel>(ISupportModules<TModel>, Dictionary<String, String>, Action<Dictionary<String, String>>)
    RequestModuleExtensions.WithResponseHeaders<TModel>(ISupportModules<TModel>, Action<Dictionary<String, String>>)
    Back to top PnP Core SDK
    Generated by DocFX with Material UI
    spacer