Click or drag to resize

IVersionableItemUpdateToVersionAsync Method

IT Hit WebDAV Classes Reference
Updates content and properties of the item to those identified by version parameter.

Namespace:  ITHit.WebDAV.Server.DeltaV
Assembly:  ITHit.WebDAV.Server (in ITHit.WebDAV.Server.dll) Version: 13.3.13068
Task UpdateToVersionAsync(
	IVersion version


Type: ITHit.WebDAV.Server.DeltaVIVersion

[Missing <param name="version"/> documentation for "M:ITHit.WebDAV.Server.DeltaV.IVersionableItem.UpdateToVersionAsync(ITHit.WebDAV.Server.DeltaV.IVersion)"]

Return Value

Type: Task
LockedExceptionThis item was locked. Client did not provide the lock token.
NeedPrivilegesExceptionThe user doesn't have enough privileges.
InsufficientStorageExceptionQuota limit is reached.
MultistatusExceptionErrors has occurred during processing of the subtree.
DavExceptionIn other cases.

In your UpdateToVersionAsync(IVersion) implementation you will create a new version and copy content and properties from IVersion passed as a parameter to new version. You will also replace content and properties of this item. The new created version becomes current version.

The UpdateToVersionAsync(IVersion) method can only be called when item is in check-in state.

See Also