Click or drag to resize

IVersionableItemAsyncUpdateToVersionAsync 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: 11.3.10719
Syntax
Task UpdateToVersionAsync(
	IVersionAsync version
)

Task UpdateToVersionAsync(
	IVersionAsync version
)

Parameters

version
Type: ITHit.WebDAV.Server.DeltaVIVersionAsync

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

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(IVersionAsync) implementation you will create a new version and copy content and properties from IVersionAsync 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(IVersionAsync) method can only be called when item is in check-in state.

See Also