IResource.PutUnderVersionControl Method (Boolean, String)

IT Hit WebDAV for .NET

Enables / disables version control for this resource.

[Visual Basic]
Sub PutUnderVersionControl( _
   ByVal enable As Boolean, _
   ByVal lockToken As String _
)
[C#]
void PutUnderVersionControl(
   bool enable,
   string lockToken
);

Parameters

enable
True to enable version-control, false - to disable.
lockToken
Lock token for this item.

Exceptions

Exception Type Condition
LockedException This item is locked and invalid lock token was provided.
UnauthorizedException Request is not authorized.
NotFoundException This resource doesn't exist on the server.
NotVersionableException This resource doesn't support version-control method.
WebDavHttpException Server returned unknown error.
WebDavException In case of any unexpected error.

See Also

IResource Interface | ITHit.WebDAV.Client Namespace | IResource.PutUnderVersionControl Overload List