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
Syntax
Task UpdateToVersionAsync(
	IVersion version
)

Parameters

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
.
Exceptions
ExceptionCondition
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.
Remarks

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