WebDAV .NET Class Library
WebDAV .NET Class Library
WebDAV .NET
Independentsoft.Webdav
Resource Class
Resource Methods
Lock Method
Lock Method
Lock Method (Int32)
Lock Method (String)
Lock Method (ActiveLock)
Lock Method (String, ActiveLock)
Lock Method (String, Int32)
Lock Method (String, String)
Lock Method (String, String, Int32)
Lock Method (String, String, String)

# Resource Lock Method (String, String, Int32)

Lock a resource based on the given parameters.

Namespace: Independentsoft.Webdav
Assembly: Independentsoft.Webdav (in Independentsoft.Webdav.dll) Version: 1.0.700.18437
Syntax
C#
VB
Copy

    public ActiveLock Lock(
    	string address,
    	string depth,
    	int timeout
    )

    Public Function Lock (
    	address As String,
    	depth As String,
    	timeout As Integer
    ) As ActiveLock

#### Parameters

address
  Type: System
  String
  The URI of the resource to lock.
depth
  Type: System
  String
  The depth of lock. Allowed values are: Depth.Zero and Depth.Infinity
timeout
  Type: System
  Int32
  The lock timeout in seconds.

#### Return Value

Type: ActiveLock
An ActiveLock as result of lock operation.
See Also

#### Reference

Resource Class
Lock Overload
Independentsoft.Webdav Namespace

Copyright 2022 Independentsoft

Send comments on this topic to support@independentsoft.de