Interface IFile
- Namespace
- PnP.Core.Model.SharePoint
- Assembly
- PnP.Core.dll
Public interface to define a File object
public interface IFile : IDataModel<IFile>, IDataModelParent, IDataModelWithContext, ISupportModules<IFile>, IDataModelGet<IFile>, IDataModelLoad<IFile>, IDataModelUpdate, IDataModelDelete, IQueryableDataModel
- Inherited Members
- Extension Methods
Properties
All
A special property used to add an asterisk to a $select statement
object All { get; }
Property Value
Author
Gets a value that specifies the user who added the file.
ISharePointUser Author { get; }
Property Value
CheckInComment
Returns the comment that was specified when the document was checked into the document library
string CheckInComment { get; }
Property Value
CheckOutType
Gets a value that specifies the type of check out associated with the file.
CheckOutType CheckOutType { get; }
Property Value
CheckedOutByUser
Gets a value that returns the user who has checked out the file.
ISharePointUser CheckedOutByUser { get; }
Property Value
ContentTag
Returns internal version of content, used to validate document equality for read purposes.
string ContentTag { get; }
Property Value
CustomizedPageStatus
Gets a value that specifies the customization status of the file.
CustomizedPageStatus CustomizedPageStatus { get; }
Property Value
ETag
Gets a value that specifies the ETag value.
string ETag { get; }
Property Value
EffectiveInformationRightsManagementSettings
Gets the Information Rights Management settings of the file.
IEffectiveInformationRightsManagementSettings EffectiveInformationRightsManagementSettings { get; }
Property Value
HasAlternateContentStreams
Indicates whether this file has alternate streams with content.
bool HasAlternateContentStreams { get; }
Property Value
InformationRightsManagementSettings
Gets the Information Rights Management settings of the file.
IInformationRightsManagementFileSettings InformationRightsManagementSettings { get; }
Property Value
IrmEnabled
Gets or sets whether Irm is enabled on the file.
bool IrmEnabled { get; set; }
Property Value
Length
Gets the file size of the file.
long Length { get; }
Property Value
Level
Level of the file (published or draft)
PublishedStatus Level { get; }
Property Value
LinkingUri
Gets the linking URI of the file.
string LinkingUri { get; }
Property Value
LinkingUrl
Gets the linking URL of the file.
string LinkingUrl { get; }
Property Value
ListId
Gets the id of the list containing the file.
Guid ListId { get; }
Property Value
ListItemAllFields
Gets a value that specifies the list item field values for the list item corresponding to the file.
IListItem ListItemAllFields { get; }
Property Value
LockedByUser
Gets a value that returns the user who has locked the file.
ISharePointUser LockedByUser { get; }
Property Value
MajorVersion
Gets a value that specifies the major version of the file.
int MajorVersion { get; }
Property Value
MinorVersion
Gets a value that specifies the minor version of the file.
int MinorVersion { get; }
Property Value
ModifiedBy
Gets a value that returns the last user who has modified the file.
ISharePointUser ModifiedBy { get; }
Property Value
Name
Gets the name of the file including the extension.
string Name { get; }
Property Value
PageRenderType
Gets the list page render type of the file.
ListPageRenderType PageRenderType { get; }
Property Value
Properties
Gets the properties of the file.
IPropertyValues Properties { get; }
Property Value
ServerRedirectedUrl
Gets the URL which opens the document in Office Web Apps.
string ServerRedirectedUrl { get; }
Property Value
ServerRelativeUrl
Gets the relative URL of the file based on the URL for the server.
string ServerRelativeUrl { get; }
Property Value
SiteId
Gets the Id of the Site collection in which the file is stored.
Guid SiteId { get; }
Property Value
TimeCreated
Gets a value that specifies when the file was created.
DateTime TimeCreated { get; }
Property Value
TimeLastModified
Gets a value that specifies when the file was last modified.
DateTime TimeLastModified { get; }
Property Value
Title
Gets a value that specifies the display name of the file.
string Title { get; }
Property Value
UIVersion
Gets a value that specifies the implementation-specific version identifier of the file.
int UIVersion { get; }
Property Value
UIVersionLabel
Gets a value that specifies the implementation-specific version identifier of the file.
string UIVersionLabel { get; }
Property Value
UniqueId
Gets the unique Id of the file.
Guid UniqueId { get; }
Property Value
VersionEvents
Gets a value that returns a collection of file version event objects that represent the version events of the file.
IFileVersionEventCollection VersionEvents { get; }
Property Value
Versions
Gets a value that returns a collection of file version objects that represent the versions of the file.
Implements IQueryable<T>.
See Requesting model collections
and IQueryable performance considerations to learn more.
IFileVersionCollection Versions { get; }
Property Value
VroomDriveID
Get the Graph Drive ID of the drive to which the file belongs.
string VroomDriveID { get; }
Property Value
VroomItemID
Get the Graph DriveItem ID of the file.
string VroomItemID { get; }
Property Value
WebId
Gets the Id of the site in which the file is stored.
Guid WebId { get; }
Property Value
Methods
Approve(string)
Approves the file.
The approval commentvoid Approve(string comment = null)
Parameters
commentstring
ApproveAsync(string)
Approves the file.
The approval commentTask ApproveAsync(string comment = null)
Parameters
commentstring
Returns
ApproveBatch(Batch, string)
Approves the file.
The approval comment The batch instance to use.void ApproveBatch(Batch batch, string comment = null)
Parameters
ApproveBatch(string)
Approves the file.
The approval commentvoid ApproveBatch(string comment = null)
Parameters
commentstring
ApproveBatchAsync(Batch, string)
Approves the file.
The approval comment The batch instance to use.Task ApproveBatchAsync(Batch batch, string comment = null)
Parameters
Returns
ApproveBatchAsync(string)
Approves the file.
The approval commentTask ApproveBatchAsync(string comment = null)
Parameters
commentstring
Returns
Checkin(string, CheckinType)
Checks in the file.
The check in comment. The type of check in to use.void Checkin(string comment = null, CheckinType checkinType = CheckinType.MinorCheckIn)
Parameters
commentstringcheckinTypeCheckinType
CheckinAsync(string, CheckinType)
Checks in the file.
The check in comment. The type of check in to use.Task CheckinAsync(string comment = null, CheckinType checkinType = CheckinType.MinorCheckIn)
Parameters
commentstringcheckinTypeCheckinType
Returns
CheckinBatch(Batch, string, CheckinType)
Checks in the file.
The check in comment. The type of check in to use. The batch instance to use.void CheckinBatch(Batch batch, string comment = null, CheckinType checkinType = CheckinType.MinorCheckIn)
Parameters
batchBatchcommentstringcheckinTypeCheckinType
CheckinBatch(string, CheckinType)
Checks in the file.
The check in comment. The type of check in to use.void CheckinBatch(string comment = null, CheckinType checkinType = CheckinType.MinorCheckIn)
Parameters
commentstringcheckinTypeCheckinType
CheckinBatchAsync(Batch, string, CheckinType)
Checks in the file.
The check in comment. The type of check in to use. The batch instance to use.Task CheckinBatchAsync(Batch batch, string comment = null, CheckinType checkinType = CheckinType.MinorCheckIn)
Parameters
batchBatchcommentstringcheckinTypeCheckinType
Returns
CheckinBatchAsync(string, CheckinType)
Checks in the file.
The check in comment. The type of check in to use.Task CheckinBatchAsync(string comment = null, CheckinType checkinType = CheckinType.MinorCheckIn)
Parameters
commentstringcheckinTypeCheckinType
Returns
Checkout()
Checks out the file.
void Checkout()
CheckoutAsync()
Checks out the file.
Task CheckoutAsync()
Returns
CheckoutBatch()
Checks out the file.
void CheckoutBatch()
CheckoutBatch(Batch)
Checks out the file.
The batch instance to use.void CheckoutBatch(Batch batch)
Parameters
batchBatch
CheckoutBatchAsync()
Checks out the file.
Task CheckoutBatchAsync()
Returns
CheckoutBatchAsync(Batch)
Checks out the file.
The batch instance to use.Task CheckoutBatchAsync(Batch batch)
Parameters
batchBatch
Returns
ClassifyAndExtract()
Requests Syntex AI models to classify and extract information from this file
ISyntexClassifyAndExtractResult ClassifyAndExtract()
Returns
- ISyntexClassifyAndExtractResult
Information about the classify and extract request
ClassifyAndExtractAsync()
Requests Syntex AI models to classify and extract information from this file
Task<ISyntexClassifyAndExtractResult> ClassifyAndExtractAsync()
Returns
- Task<ISyntexClassifyAndExtractResult>
Information about the classify and extract request
ClassifyAndExtractBatch()
Requests Syntex AI models to classify and extract information from this file
IBatchSingleResult<ISyntexClassifyAndExtractResult> ClassifyAndExtractBatch()
Returns
- IBatchSingleResult<ISyntexClassifyAndExtractResult>
Information about the classify and extract request
ClassifyAndExtractBatch(Batch)
Requests Syntex AI models to classify and extract information from this file
IBatchSingleResult<ISyntexClassifyAndExtractResult> ClassifyAndExtractBatch(Batch batch)
Parameters
batchBatchBatch to add this request to
Returns
- IBatchSingleResult<ISyntexClassifyAndExtractResult>
Information about the classify and extract request
ClassifyAndExtractBatchAsync()
Requests Syntex AI models to classify and extract information from this file
Task<IBatchSingleResult<ISyntexClassifyAndExtractResult>> ClassifyAndExtractBatchAsync()
Returns
- Task<IBatchSingleResult<ISyntexClassifyAndExtractResult>>
Information about the classify and extract request
ClassifyAndExtractBatchAsync(Batch)
Requests Syntex AI models to classify and extract information from this file
Task<IBatchSingleResult<ISyntexClassifyAndExtractResult>> ClassifyAndExtractBatchAsync(Batch batch)
Parameters
batchBatchBatch to add this request to
Returns
- Task<IBatchSingleResult<ISyntexClassifyAndExtractResult>>
Information about the classify and extract request
ConvertTo(ConvertToOptions)
Converts the file to PDF, JPG, Html or Glb
Stream ConvertTo(ConvertToOptions options)
Parameters
optionsConvertToOptionsDefines the file conversion options
Returns
- Stream
Stream of the converted file
ConvertToAsync(ConvertToOptions)
Converts the file to PDF, JPG, Html or Glb
Task<Stream> ConvertToAsync(ConvertToOptions options)
Parameters
optionsConvertToOptionsDefines the file conversion options
Returns
CopyTo(string, bool, MoveCopyOptions)
Copies a file to the destination URL.
void CopyTo(string destinationUrl, bool overwrite = false, MoveCopyOptions options = null)
Parameters
destinationUrlstringThe destination URL including file name.
overwriteboolIndicates whether the file should be overwritten if already existing.
optionsMoveCopyOptionsOptions of the copy operation.
CopyToAsync(string, bool, MoveCopyOptions)
Copies a file to the destination URL.
Task CopyToAsync(string destinationUrl, bool overwrite = false, MoveCopyOptions options = null)
Parameters
destinationUrlstringThe destination URL including file name.
overwriteboolIndicates whether the file should be overwritten if already existing.
optionsMoveCopyOptionsOptions of the copy operation.
Returns
CopyToBatch(Batch, string, bool, MoveCopyOptions)
Copies a file to the destination URL.
void CopyToBatch(Batch batch, string destinationUrl, bool overwrite = false, MoveCopyOptions options = null)
Parameters
batchBatchThe batch instance to use.
destinationUrlstringThe destination URL including file name.
overwriteboolIndicates whether the file should be overwritten if already existing.
optionsMoveCopyOptionsOptions of the copy operation.
CopyToBatch(string, bool, MoveCopyOptions)
Copies a file to the destination URL.
void CopyToBatch(string destinationUrl, bool overwrite = false, MoveCopyOptions options = null)
Parameters
destinationUrlstringThe destination URL including file name.
overwriteboolIndicates whether the file should be overwritten if already existing.
optionsMoveCopyOptionsOptions of the copy operation.
CopyToBatchAsync(Batch, string, bool, MoveCopyOptions)
Copies a file to the destination URL.
Task CopyToBatchAsync(Batch batch, string destinationUrl, bool overwrite = false, MoveCopyOptions options = null)
Parameters
batchBatchThe batch instance to use.
destinationUrlstringThe destination URL including file name.
overwriteboolIndicates whether the file should be overwritten if already existing.
optionsMoveCopyOptionsOptions of the copy operation.
Returns
CopyToBatchAsync(string, bool, MoveCopyOptions)
Copies a file to the destination URL.
Task CopyToBatchAsync(string destinationUrl, bool overwrite = false, MoveCopyOptions options = null)
Parameters
destinationUrlstringThe destination URL including file name.
overwriteboolIndicates whether the file should be overwritten if already existing.
optionsMoveCopyOptionsOptions of the copy operation.
Returns
CreateAnonymousSharingLink(AnonymousLinkOptions)
Creates an anonymous sharing link for a file
IGraphPermission CreateAnonymousSharingLink(AnonymousLinkOptions anonymousLinkOptions)
Parameters
anonymousLinkOptionsAnonymousLinkOptions
Returns
- IGraphPermission
Permission that has been created
CreateAnonymousSharingLinkAsync(AnonymousLinkOptions)
Creates an anonymous sharing link for a file
Task<IGraphPermission> CreateAnonymousSharingLinkAsync(AnonymousLinkOptions anonymousLinkOptions)
Parameters
anonymousLinkOptionsAnonymousLinkOptions
Returns
- Task<IGraphPermission>
Permission that has been created
CreateOrganizationalSharingLink(OrganizationalLinkOptions)
Creates an organization sharing link for a file
IGraphPermission CreateOrganizationalSharingLink(OrganizationalLinkOptions organizationalLinkOptions)
Parameters
organizationalLinkOptionsOrganizationalLinkOptions
Returns
- IGraphPermission
Permission that has been created
CreateOrganizationalSharingLinkAsync(OrganizationalLinkOptions)
Creates an organization sharing link for a file
Task<IGraphPermission> CreateOrganizationalSharingLinkAsync(OrganizationalLinkOptions organizationalLinkOptions)
Parameters
organizationalLinkOptionsOrganizationalLinkOptions
Returns
- Task<IGraphPermission>
Permission that has been created
CreateSharingInvite(InviteOptions)
Creates a sharing invite to a specific user
IGraphPermission CreateSharingInvite(InviteOptions inviteOptions)
Parameters
inviteOptionsInviteOptions
Returns
- IGraphPermission
Permission that has been created
CreateSharingInviteAsync(InviteOptions)
Creates a sharing invite to a specific user
Task<IGraphPermission> CreateSharingInviteAsync(InviteOptions inviteOptions)
Parameters
inviteOptionsInviteOptions
Returns
- Task<IGraphPermission>
Permission that has been created
CreateUserSharingLink(UserLinkOptions)
Creates a user sharing link for a file
IGraphPermission CreateUserSharingLink(UserLinkOptions userLinkOptions)
Parameters
userLinkOptionsUserLinkOptions
Returns
- IGraphPermission
Permission that has been created
CreateUserSharingLinkAsync(UserLinkOptions)
Creates a user sharing link for a file
Task<IGraphPermission> CreateUserSharingLinkAsync(UserLinkOptions userLinkOptions)
Parameters
userLinkOptionsUserLinkOptions
Returns
- Task<IGraphPermission>
Permission that has been created
DeleteShareLinks()
Deletes the share links on the file item
void DeleteShareLinks()
DeleteShareLinksAsync()
Deletes the share links on the file item
Task DeleteShareLinksAsync()
Returns
GetAnalytics(AnalyticsOptions)
Gets file analytics
List<IActivityStat> GetAnalytics(AnalyticsOptions options = null)
Parameters
optionsAnalyticsOptionsDefines which analytics are needed
Returns
- List<IActivityStat>
The requested analytics data
GetAnalyticsAsync(AnalyticsOptions)
Gets file analytics
Task<List<IActivityStat>> GetAnalyticsAsync(AnalyticsOptions options = null)
Parameters
optionsAnalyticsOptionsDefines which analytics are needed
Returns
- Task<List<IActivityStat>>
The requested analytics data
GetContent(bool)
Get the content of the file.
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 the file.
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.
byte[] GetContentBytes()
Returns
- byte[]
The binary content of the file
GetContentBytesAsync()
Get the content of the file.
Task<byte[]> GetContentBytesAsync()
Returns
GetPreview(PreviewOptions)
This action allows you to obtain short-lived embeddable URLs for an item in order to render a temporary preview. The 'page' and 'zoom' options may not be available for all preview apps, but will be applied if the preview app supports it.
IFilePreview GetPreview(PreviewOptions options = null)
Parameters
optionsPreviewOptionsOptions for configuring the created preview URL
Returns
- IFilePreview
FilePreview object. Either getUrl, postUrl, or both might be returned depending on the current state of embed support for the specified options.
GetPreviewAsync(PreviewOptions)
This action allows you to obtain short-lived embeddable URLs for an item in order to render a temporary preview. The 'page' and 'zoom' options may not be available for all preview apps, but will be applied if the preview app supports it.
Task<IFilePreview> GetPreviewAsync(PreviewOptions options = null)
Parameters
optionsPreviewOptionsOptions for configuring the created preview URL
Returns
- Task<IFilePreview>
FilePreview object. Either getUrl, postUrl, or both might be returned depending on the current state of embed support for the specified options.
GetShareLinks()
Gets the share links on the file item
IGraphPermissionCollection GetShareLinks()
Returns
- IGraphPermissionCollection
Collection of share links existing on the file
GetShareLinksAsync()
Gets the share links on the file item
Task<IGraphPermissionCollection> GetShareLinksAsync()
Returns
- Task<IGraphPermissionCollection>
Collection of share links existing on the file
GetThumbnails(ThumbnailOptions)
Returns a list of thumbnails for this file
List<IThumbnail> GetThumbnails(ThumbnailOptions options = null)
Parameters
optionsThumbnailOptionsOptionally specify which thumbnails you need
Returns
- List<IThumbnail>
The requested thumbnails
GetThumbnailsAsync(ThumbnailOptions)
Returns a list of thumbnails for this file
Task<List<IThumbnail>> GetThumbnailsAsync(ThumbnailOptions options = null)
Parameters
optionsThumbnailOptionsOptionally specify which thumbnails you need
Returns
- Task<List<IThumbnail>>
The requested thumbnails
GetThumbnailsBatch(ThumbnailOptions)
Returns a list of thumbnails for this file
IEnumerableBatchResult<IThumbnail> GetThumbnailsBatch(ThumbnailOptions options = null)
Parameters
optionsThumbnailOptionsOptionally specify which thumbnails you need
Returns
- IEnumerableBatchResult<IThumbnail>
The requested thumbnails
GetThumbnailsBatch(Batch, ThumbnailOptions)
Returns a list of thumbnails for this file
IEnumerableBatchResult<IThumbnail> GetThumbnailsBatch(Batch batch, ThumbnailOptions options = null)
Parameters
batchBatchThe batch instance to use.
optionsThumbnailOptionsOptionally specify which thumbnails you need
Returns
- IEnumerableBatchResult<IThumbnail>
The requested thumbnails
GetThumbnailsBatchAsync(ThumbnailOptions)
Returns a list of thumbnails for this file
Task<IEnumerableBatchResult<IThumbnail>> GetThumbnailsBatchAsync(ThumbnailOptions options = null)
Parameters
optionsThumbnailOptionsOptionally specify which thumbnails you need
Returns
- Task<IEnumerableBatchResult<IThumbnail>>
The requested thumbnails
GetThumbnailsBatchAsync(Batch, ThumbnailOptions)
Returns a list of thumbnails for this file
Task<IEnumerableBatchResult<IThumbnail>> GetThumbnailsBatchAsync(Batch batch, ThumbnailOptions options = null)
Parameters
batchBatchThe batch instance to use.
optionsThumbnailOptionsOptionally specify which thumbnails you need
Returns
- Task<IEnumerableBatchResult<IThumbnail>>
The requested thumbnails
MoveTo(string, MoveOperations, MoveCopyOptions)
Move a file to the destination URL.
void MoveTo(string destinationUrl, MoveOperations moveOperations = MoveOperations.None, MoveCopyOptions options = null)
Parameters
destinationUrlstringThe destination URL including file name.
moveOperationsMoveOperationscombinable flags to indicate the type of move operations.
optionsMoveCopyOptionsOptions of the move operation.
Remarks
If AllowBrokenThickets or BypassSharedLock are used and the move is inside the same site then these are respected but the MoveCopyOptions are not used. For cross site moves the MoveCopyOptions options are always used, if you want to use for example KeepBoth for a move inside the same site then omit the earlier mentioned MoveOperations.
MoveToAsync(string, MoveOperations, MoveCopyOptions)
Move a file to the destination URL.
Task MoveToAsync(string destinationUrl, MoveOperations moveOperations = MoveOperations.None, MoveCopyOptions options = null)
Parameters
destinationUrlstringThe destination URL including file name.
moveOperationsMoveOperationscombinable flags to indicate the type of move operations.
optionsMoveCopyOptionsOptions of the move operation.
Returns
Remarks
If AllowBrokenThickets or BypassSharedLock are used and the move is inside the same site then these are respected but the MoveCopyOptions are not used. For cross site moves the MoveCopyOptions options are always used, if you want to use for example KeepBoth for a move inside the same site then omit the earlier mentioned MoveOperations.
MoveToBatch(Batch, string, MoveOperations, MoveCopyOptions)
Move a file to the destination URL.
void MoveToBatch(Batch batch, string destinationUrl, MoveOperations moveOperations = MoveOperations.None, MoveCopyOptions options = null)
Parameters
batchBatchThe batch instance to use.
destinationUrlstringThe destination URL including file name.
moveOperationsMoveOperationscombinable flags to indicate the type of move operations.
optionsMoveCopyOptionsOptions of the move operation.
Remarks
If AllowBrokenThickets or BypassSharedLock are used and the move is inside the same site then these are respected but the MoveCopyOptions are not used. For cross site moves the MoveCopyOptions options are always used, if you want to use for example KeepBoth for a move inside the same site then omit the earlier mentioned MoveOperations.
MoveToBatch(string, MoveOperations, MoveCopyOptions)
Move a file to the destination URL.
void MoveToBatch(string destinationUrl, MoveOperations moveOperations = MoveOperations.None, MoveCopyOptions options = null)
Parameters
destinationUrlstringThe destination URL including file name.
moveOperationsMoveOperationscombinable flags to indicate the type of move operations.
optionsMoveCopyOptionsOptions of the move operation.
Remarks
If AllowBrokenThickets or BypassSharedLock are used and the move is inside the same site then these are respected but the MoveCopyOptions are not used. For cross site moves the MoveCopyOptions options are always used, if you want to use for example KeepBoth for a move inside the same site then omit the earlier mentioned MoveOperations.
MoveToBatchAsync(Batch, string, MoveOperations, MoveCopyOptions)
Move a file to the destination URL.
Task MoveToBatchAsync(Batch batch, string destinationUrl, MoveOperations moveOperations = MoveOperations.None, MoveCopyOptions options = null)
Parameters
batchBatchThe batch instance to use.
destinationUrlstringThe destination URL including file name.
moveOperationsMoveOperationscombinable flags to indicate the type of move operations.
optionsMoveCopyOptionsOptions of the move operation.
Returns
Remarks
If AllowBrokenThickets or BypassSharedLock are used and the move is inside the same site then these are respected but the MoveCopyOptions are not used. For cross site moves the MoveCopyOptions options are always used, if you want to use for example KeepBoth for a move inside the same site then omit the earlier mentioned MoveOperations.
MoveToBatchAsync(string, MoveOperations, MoveCopyOptions)
Move a file to the destination URL.
Task MoveToBatchAsync(string destinationUrl, MoveOperations moveOperations = MoveOperations.None, MoveCopyOptions options = null)
Parameters
destinationUrlstringThe destination URL including file name.
moveOperationsMoveOperationscombinable flags to indicate the type of move operations.
optionsMoveCopyOptionsOptions of the move operation.
Returns
Remarks
If AllowBrokenThickets or BypassSharedLock are used and the move is inside the same site then these are respected but the MoveCopyOptions are not used. For cross site moves the MoveCopyOptions options are always used, if you want to use for example KeepBoth for a move inside the same site then omit the earlier mentioned MoveOperations.
Publish(string)
Publish a major version of the current file.
The comments to add on file publishing.void Publish(string comment = null)
Parameters
commentstring
PublishAsync(string)
Publish a major version of the current file.
The comments to add on file publishing.Task PublishAsync(string comment = null)
Parameters
commentstring
Returns
PublishBatch(Batch, string)
Publish a major version of the current file.
The batch instance to use. The comments to add on file publishing.void PublishBatch(Batch batch, string comment = null)
Parameters
PublishBatch(string)
Publish a major version of the current file.
The comments to add on file publishing.void PublishBatch(string comment = null)
Parameters
commentstring
PublishBatchAsync(Batch, string)
Publish a major version of the current file.
The batch instance to use. The comments to add on file publishing.Task PublishBatchAsync(Batch batch, string comment = null)
Parameters
Returns
PublishBatchAsync(string)
Publish a major version of the current file.
The comments to add on file publishing.Task PublishBatchAsync(string comment = null)
Parameters
commentstring
Returns
Recycle()
Send the file to recycle bin.
Guid Recycle()
Returns
- Guid
The Id of the created recycle bin item
RecycleAsync()
Send the file to recycle bin.
Task<Guid> RecycleAsync()
Returns
RecycleBatch()
Send the file to recycle bin.
IBatchSingleResult<BatchResultValue<Guid>> RecycleBatch()
Returns
RecycleBatch(Batch)
Send the file to recycle bin
IBatchSingleResult<BatchResultValue<Guid>> RecycleBatch(Batch batch)
Parameters
batchBatchThe batch instance to use.
Returns
RecycleBatchAsync()
Send the file to recycle bin.
Task<IBatchSingleResult<BatchResultValue<Guid>>> RecycleBatchAsync()
Returns
RecycleBatchAsync(Batch)
Send the file to recycle bin.
Task<IBatchSingleResult<BatchResultValue<Guid>>> RecycleBatchAsync(Batch batch)
Parameters
batchBatchThe batch instance to use.
Returns
Rename(string)
Renames a file
void Rename(string name)
Parameters
namestringNew file name
RenameAsync(string)
Renames a file
Task RenameAsync(string name)
Parameters
namestringNew file name
Returns
UndoCheckout()
Release the checked out file without saving the changes.
void UndoCheckout()
UndoCheckoutAsync()
Release the checked out file without saving the changes.
Task UndoCheckoutAsync()
Returns
UndoCheckoutBatch()
Release the checked out file without saving the changes.
void UndoCheckoutBatch()
UndoCheckoutBatch(Batch)
Release the checked out file without saving the changes.
The batch instance to use.void UndoCheckoutBatch(Batch batch)
Parameters
batchBatch
UndoCheckoutBatchAsync()
Release the checked out file without saving the changes.
Task UndoCheckoutBatchAsync()
Returns
UndoCheckoutBatchAsync(Batch)
Release the checked out file without saving the changes.
The batch instance to use.Task UndoCheckoutBatchAsync(Batch batch)
Parameters
batchBatch
Returns
Unpublish(string)
Unpublish the latest major version of the current file.
The comments to add on file unpublishing.void Unpublish(string comment = null)
Parameters
commentstring
UnpublishAsync(string)
Unpublish the latest major version of the current file.
The comments to add on file unpublishing.Task UnpublishAsync(string comment = null)
Parameters
commentstring
Returns
UnpublishBatch(Batch, string)
Unpublish the latest major version of the current file.
The batch instance to use. The comments to add on file unpublishing.void UnpublishBatch(Batch batch, string comment = null)
Parameters
UnpublishBatch(string)
Unpublish the latest major version of the current file.
The comments to add on file unpublishing.void UnpublishBatch(string comments = null)
Parameters
commentsstring
UnpublishBatchAsync(Batch, string)
Unpublish the latest major version of the current file.
The batch instance to use. The comments to add on file unpublishing.Task UnpublishBatchAsync(Batch batch, string comment = null)
Parameters
Returns
UnpublishBatchAsync(string)
Unpublish the latest major version of the current file.
The comments to add on file unpublishing.Task UnpublishBatchAsync(string comment = null)
Parameters
commentstring