WebDavSessionRefreshLockAsync Method 
IT Hit WebDAV Classes Reference 
            Prolongs the lock.
            
 
    Namespace: 
   ITHit.WebDAV.Client
    Assembly:
   ITHit.WebDAV.Client (in ITHit.WebDAV.Client.dll) Version: 6.0.4052-Beta
Syntaxpublic Task<LockInfo> RefreshLockAsync(
	Uri item,
	string lockToken,
	Nullable<TimeSpan> timeout,
	IDictionary<string, string> headers = null,
	CancellationToken cancellationToken = null
)
Public Function RefreshLockAsync ( 
	item As Uri,
	lockToken As String,
	timeout As Nullable(Of TimeSpan),
	Optional headers As IDictionary(Of String, String) = Nothing,
	Optional cancellationToken As CancellationToken = Nothing
) As Task(Of LockInfo)
public:
Task<LockInfo^>^ RefreshLockAsync(
	Uri^ item, 
	String^ lockToken, 
	Nullable<TimeSpan> timeout, 
	IDictionary<String^, String^>^ headers = nullptr, 
	CancellationToken cancellationToken = nullptr
)
member RefreshLockAsync : 
        item : Uri * 
        lockToken : string * 
        timeout : Nullable<TimeSpan> * 
        ?headers : IDictionary<string, string> * 
        ?cancellationToken : CancellationToken 
(* Defaults:
        let _headers = defaultArg headers null
        let _cancellationToken = defaultArg cancellationToken null
*)
-> Task<LockInfo> 
Parameters
- item
 - Type: SystemUri
URI of the item to be lock prolonged. - lockToken
 - Type: SystemString
Identifies lock to be prolonged. - timeout
 - Type: SystemNullableTimeSpan
New timeout to set. Set to TimeSpan.MaxValue for infinity. - headers (Optional)
 - Type: System.Collections.GenericIDictionaryString, String
Request headers. - cancellationToken (Optional)
 - Type: System.ThreadingCancellationToken
Propagates notification that operations should be canceled. 
Return Value
Type: 
TaskLockInfoInstance of 
LockInfo with information about refreshed lock.
Exceptions
RemarksServer can set lock with different timeout than the one was asked.
See Also