Search Results for

    Show / Hide Table of Contents

    Interface IFileVersion

    Public interface to define a FileVersion object

    Inherited Members
    IDataModel<IFileVersion>.Requested
    IDataModel<IFileVersion>.HasValue(String)
    IDataModel<IFileVersion>.HasChanged(String)
    IDataModel<IFileVersion>.IsPropertyAvailable(Expression<Func<IFileVersion, Object>>)
    IDataModel<IFileVersion>.ArePropertiesAvailable(Expression<Func<IFileVersion, Object>>[])
    IDataModel<IFileVersion>.EnsureProperties(Expression<Func<IFileVersion, Object>>[])
    IDataModel<IFileVersion>.EnsurePropertiesAsync(Expression<Func<IFileVersion, Object>>[])
    IDataModel<IFileVersion>.ExecuteRequestAsync(ApiRequest)
    IDataModel<IFileVersion>.ExecuteRequest(ApiRequest)
    IDataModel<IFileVersion>.ExecuteRequestBatchAsync(ApiRequest)
    IDataModel<IFileVersion>.ExecuteRequestBatch(ApiRequest)
    IDataModel<IFileVersion>.ExecuteRequestBatchAsync(Batch, ApiRequest)
    IDataModel<IFileVersion>.ExecuteRequestBatch(Batch, ApiRequest)
    IDataModelParent.Parent
    IDataModelWithContext.PnPContext
    IDataModelGet<IFileVersion>.GetBatchAsync(Batch, Expression<Func<IFileVersion, Object>>[])
    IDataModelGet<IFileVersion>.GetAsync(Expression<Func<IFileVersion, Object>>[])
    IDataModelLoad<IFileVersion>.LoadBatchAsync(Batch, Expression<Func<IFileVersion, Object>>[])
    IDataModelLoad<IFileVersion>.LoadAsync(Expression<Func<IFileVersion, Object>>[])
    Namespace: PnP.Core.Model.SharePoint
    Assembly: PnP.Core.dll
    Syntax
    public interface IFileVersion : IDataModel<IFileVersion>, IDataModelParent, IDataModelWithContext, ISupportModules<IFileVersion>, IDataModelGet<IFileVersion>, IDataModelLoad<IFileVersion>, IQueryableDataModel

    Properties

    All

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

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

    CheckInComment

    Gets a value that specifies the check-in comment.

    Declaration
    string CheckInComment { get; }
    Property Value
    System.String

    Created

    Gets a value that specifies the creation date and time for the file version.

    Declaration
    DateTime Created { get; }
    Property Value
    DateTime

    CreatedBy

    The ISharePointUser that created this version

    Declaration
    ISharePointUser CreatedBy { get; }
    Property Value
    ISharePointUser

    Id

    Gets the internal identifier for the file version.

    Declaration
    int Id { get; }
    Property Value
    System.Int32

    IsCurrentVersion

    Gets a value that specifies whether the file version is the current version.

    Declaration
    bool IsCurrentVersion { get; }
    Property Value
    System.Boolean

    Size

    Gets the size of this version of the file.

    Declaration
    long Size { get; }
    Property Value
    System.Int64

    Url

    Gets a value that specifies the relative URL of the file version based on the URL for the site or subsite.

    Declaration
    string Url { get; }
    Property Value
    System.String

    VersionLabel

    Gets a value that specifies the implementation specific identifier of the file.

    Declaration
    string VersionLabel { get; }
    Property Value
    System.String

    Methods

    GetContent(Boolean)

    Get the content of this file version.

    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 file

    GetContentAsync(Boolean)

    Get the content of this file version.

    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 file

    GetContentBytes()

    Get the content of the file version.

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

    The binary content of the file

    GetContentBytesAsync()

    Get the content of this file version.

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

    The binary content of the file

    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>>[])
    DataModelLoadExtensions.LoadBatchAsync<TModel>(IDataModelLoad<TModel>, Expression<Func<TModel, Object>>[])
    DataModelLoadExtensions.LoadBatchAsync<TModel>(IDataModelLoad<TModel>, Batch, Expression<Func<TModel, Object>>[])
    DataModelLoadExtensions.LoadBatch<TModel>(IDataModelLoad<TModel>, Batch, Expression<Func<TModel, Object>>[])
    DataModelLoadExtensions.LoadBatch<TModel>(IDataModelLoad<TModel>, Expression<Func<TModel, Object>>[])
    DataModelLoadExtensions.Load<TModel>(IDataModelLoad<TModel>, Expression<Func<TModel, Object>>[])
    DataModelLoadExtensions.QueryProperties<TModel>(IDataModelLoad<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