WebDavSessionMoveToAsync Method
IT Hit WebDAV Classes Reference
Moves an item to a new location.
Namespace:
ITHit.WebDAV.Client
Assembly:
ITHit.WebDAV.Client (in ITHit.WebDAV.Client.dll) Version: 6.0.4052-Beta
Syntax public Task MoveToAsync(
Uri source,
Uri destination,
bool overwrite,
LockUriTokenPair[] lockTokens = null,
IDictionary<string, string> headers = null,
CancellationToken cancellationToken = null
)
Public Function MoveToAsync (
source As Uri,
destination As Uri,
overwrite As Boolean,
Optional lockTokens As LockUriTokenPair() = Nothing,
Optional headers As IDictionary(Of String, String) = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task
public:
Task^ MoveToAsync(
Uri^ source,
Uri^ destination,
bool overwrite,
array<LockUriTokenPair^>^ lockTokens = nullptr,
IDictionary<String^, String^>^ headers = nullptr,
CancellationToken cancellationToken = nullptr
)
member MoveToAsync :
source : Uri *
destination : Uri *
overwrite : bool *
?lockTokens : LockUriTokenPair[] *
?headers : IDictionary<string, string> *
?cancellationToken : CancellationToken
(* Defaults:
let _lockTokens = defaultArg lockTokens null
let _headers = defaultArg headers null
let _cancellationToken = defaultArg cancellationToken null
*)
-> Task
Parameters
- source
- Type: SystemUri
URI of the item to be moved. - destination
- Type: SystemUri
Target URI. - overwrite
- Type: SystemBoolean
Whether existing destination item shall be overwritten. - lockTokens (Optional)
- Type: ITHit.WebDAV.ClientLockUriTokenPair
Lock tokens for resources to be moved, for destination folder or resources to be overwritten that are locked. - headers (Optional)
- Type: System.Collections.GenericIDictionaryString, String
Request headers. - cancellationToken (Optional)
- Type: System.ThreadingCancellationToken
Propagates notification that operations should be canceled.
Return Value
Type:
Task.
See Also