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
CheckInComment
Gets a value that specifies the check-in comment.
string CheckInComment { get; }
Property Value
Created
Gets a value that specifies the creation date and time for the file version.
DateTime Created { get; }
Property Value
CreatedBy
The ISharePointUser that created this version
ISharePointUser CreatedBy { get; }
Property Value
Id
Gets the internal identifier for the file version.
int Id { get; }
Property Value
IsCurrentVersion
Gets a value that specifies whether the file version is the current version.
bool IsCurrentVersion { get; }
Property Value
Size
Gets the size of this version of the file.
long Size { get; }
Property Value
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
VersionLabel
Gets a value that specifies the implementation specific identifier of the file.
string VersionLabel { get; }
Property Value
Methods
GetContent(bool)
Get the content of this file version.
Stream GetContent(bool streamContent = false)
Parameters
streamContentboolAlready 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
streamContentboolAlready return the content before all bytes are read, needed for large file downloads
Returns
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()