Table of Contents

Interface IFileVersion

Namespace
PnP.Core.Model.SharePoint
Assembly
PnP.Core.dll

Public interface to define a FileVersion object

public interface IFileVersion : IDataModel<IFileVersion>, IDataModelParent, IDataModelWithContext, ISupportModules<IFileVersion>, IDataModelGet<IFileVersion>, IDataModelLoad<IFileVersion>, IQueryableDataModel
Inherited Members
Extension Methods

Properties

All

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

object All { get; }

Property Value

object

CheckInComment

Gets a value that specifies the check-in comment.

string CheckInComment { get; }

Property Value

string

Created

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

DateTime Created { get; }

Property Value

DateTime

CreatedBy

The ISharePointUser that created this version

ISharePointUser CreatedBy { get; }

Property Value

ISharePointUser

Id

Gets the internal identifier for the file version.

int Id { get; }

Property Value

int

IsCurrentVersion

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

bool IsCurrentVersion { get; }

Property Value

bool

Size

Gets the size of this version of the file.

long Size { get; }

Property Value

long

Url

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

string Url { get; }

Property Value

string

VersionLabel

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

string VersionLabel { get; }

Property Value

string

Methods

GetContent(bool)

Get the content of this file version.

Stream GetContent(bool streamContent = false)

Parameters

streamContent bool

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(bool)

Get the content of this file version.

Task<Stream> GetContentAsync(bool streamContent = false)

Parameters

streamContent bool

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.

byte[] GetContentBytes()

Returns

byte[]

The binary content of the file

GetContentBytesAsync()

Get the content of this file version.

Task<byte[]> GetContentBytesAsync()

Returns

Task<byte[]>

The binary content of the file