IResource.SetAutoVersion Method (AutoVersion, String)

IT Hit WebDAV for .NET

Sets how checked-in item responds to WebDAV client attempts to modify its content or properties.

[Visual Basic]
Sub SetAutoVersion( _
   ByVal autoVersion As AutoVersion, _
   ByVal lockToken As String _
)
[C#]
void SetAutoVersion(
   AutoVersion autoVersion,
   string lockToken
);

Parameters

autoVersion
Auto-versioning mode.
lockToken
Lock token for this item.

Exceptions

Exception Type Condition
PropertyException Attempt to set auto-versioning mode failed.
LockedException The resource is locked and no lock token was provided.
UnauthorizedException Request is not authorized.
NotFoundException This resource doesn't exist on the server.
WebDavHttpException Server returned unknown error.
WebDavException In case of any unexpected error.

See Also

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