WebDAV .NET Class Library
WebDAV .NET Class Library
WebDAV .NET
Independentsoft.Webdav
Resource Class
Resource Methods
Copy Method
Copy Method (String, String)
Copy Method (String, String, Boolean)
Copy Method (String, String, Boolean, Boolean)

# Resource Copy Method (String, String, Boolean)

Copies an existing resource to a new resource. Overwriting a existing resource is allowed if parameter overwrite is true.

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

    public bool Copy(
    	string source,
    	string destination,
    	bool overwrite
    )

    Public Function Copy (
    	source As String,
    	destination As String,
    	overwrite As Boolean
    ) As Boolean

#### Parameters

source
  Type: System
  String
  Source resource URI.
destination
  Type: System
  String
  Destination resource URI.
overwrite
  Type: System
  Boolean
  True to allow an existing resource to be overwritten; otherwise, false.

#### Return Value

Type: Boolean
True if success; otherwise, false.
See Also

#### Reference

Resource Class
Copy Overload
Independentsoft.Webdav Namespace

Copyright 2022 Independentsoft

Send comments on this topic to support@independentsoft.de