LumiSoft Net Help
Copy Method (sourceUri, targetUri, depth, overwrite)
Namespaces ► LumiSoft.Net.WebDav.Client ► WebDav_Client ► Copy(String, String, Int32, Boolean)
Copies source URI resource to the target URI.
Declaration Syntax

C# | Visual Basic | Visual C++ | F#

    public void Copy(
    	string sourceUri,
    	string targetUri,
    	int depth,
    	bool overwrite
    )

    Public Sub Copy (
    	sourceUri As String,
    	targetUri As String,
    	depth As Integer,
    	overwrite As Boolean
    )

    public:
    void Copy(
    	String^ sourceUri,
    	String^ targetUri,
    	int depth,
    	bool overwrite
    )

    member Copy :
            sourceUri : string *
            targetUri : string *
            depth : int *
            overwrite : bool -> unit

Parameters

sourceUri (String)
  Source URI.

targetUri (String)
  Target URI.

depth (Int32)
  If source is collection, then depth specified how many nested levels will be copied.

overwrite (Boolean)
  If true and target resource already exists, it will be over written. If false and target resource exists, exception is thrown.

Exceptions

Exception | Condition
--- | ---
ArgumentNullException | Is raised when sourceUri or targetUri is null reference.

Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119