DavRequestExtensionsGetClientLockTokens Method
IT Hit WebDAV Classes Reference
Gets a list of lock tokens submitted by the client.
Namespace:
ITHit.WebDAV.Server.Class2
Assembly:
ITHit.WebDAV.Server (in ITHit.WebDAV.Server.dll) Version: 13.3.13068
Syntax public static IList<string> GetClientLockTokens(
this RequestAsync request
)
<ExtensionAttribute>
Public Shared Function GetClientLockTokens (
request As RequestAsync
) As IList(Of String)
public:
[ExtensionAttribute]
static IList<String^>^ GetClientLockTokens(
RequestAsync^ request
)
[<ExtensionAttribute>]
static member GetClientLockTokens :
request : RequestAsync -> IList<string>
Parameters
- request
- Type: ITHit.ServerRequestAsync
Request to which this extension method is applied.
Field Value
Type:
IListString
List of lock tokens submitted by the client.
Return Value
Type:
IListString
A list of lock-tokens sent by the WebDAV client.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
RequestAsync. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Remarks
This method provides access to the list of lock tokens
submitted by the client. These lock tokens were generated during the call to your
LockAsync(LockLevel, Boolean, NullableTimeSpan, String) method implementation, associated with the item and returned to client.
When WebDAV client is modifying any server item it
sends back to server the list of lock tokens. In your WebDAV server Class 2
implementation before modifying any locked items you must check if WebDAV
client provided necessary lock token.
See Also