WebDAV .NET > Tutorial > Prevent lost updates (ETag)

The following example shows you how to replace a file only if nobody changed it since you read it, and how to create a file only if it does not exist yet. When the condition does not hold the server answers 412 (Precondition Failed) and nothing is changed.

C# example
VB example

Need help? Ask our developers: