Click or drag to resize

IFilePutUnderVersionControlAsync Method

IT Hit WebDAV Classes Reference
Enables / disables version control for this file.

Namespace:  ITHit.WebDAV.Client
Assembly:  ITHit.WebDAV.Client (in ITHit.WebDAV.Client.dll) Version: 6.0.4052-Beta
Syntax
Task PutUnderVersionControlAsync(
	bool enable,
	string lockToken = null,
	IDictionary<string, string> headers = null,
	CancellationToken cancellationToken = null
)

Parameters

enable
Type: SystemBoolean
True to enable version-control, false - to disable.
lockToken (Optional)
Type: SystemString
Lock token for this item.
headers (Optional)
Type: System.Collections.GenericIDictionaryString, String
Request headers.
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
Propagates notification that operations should be canceled.

Return Value

Type: Task

[Missing <returns> documentation for "M:ITHit.WebDAV.Client.IFile.PutUnderVersionControlAsync(System.Boolean,System.String,System.Collections.Generic.IDictionary{System.String,System.String},System.Threading.CancellationToken)"]

Exceptions
ExceptionCondition
LockedExceptionThis item is locked and invalid lock token was provided.
UnauthorizedExceptionRequest is not authorized.
NotFoundExceptionThis resource doesn't exist on the server.
NotVersionableExceptionThis resource doesn't support version-control method.
WebDavHttpExceptionServer returned unknown error.
WebDavExceptionIn case of any unexpected error.
See Also