Discuss this help topic in SecureBlackbox Forum

TElWebDAVClient.Rename

TElWebDAVClient     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


Renames an object on the server.

Declaration

[C#]
    void Rename(string URL, string NewName, bool MoveToRename, TElWebDAVLockList Locks);
    void Rename(TElWebDAVStorageObject Obj, string NewName, bool MoveToRename);

[VB.NET]
    Sub Rename(ByVal URL As String, ByVal NewName As String, ByVal MoveToRename As Boolean, ByVal Locks As TElWebDAVLockList)
    Sub Rename(ByVal Obj As TElWebDAVStorageObject, ByVal NewName As String, ByVal MoveToRename As Boolean)

[Pascal]
    procedure Rename(const URL : string; const NewName : string; MoveToRename : boolean = true; Locks : TElWebDAVLockList = nil);
    procedure Rename(Obj : TElWebDAVStorageObject; const NewName : string; MoveToRename : boolean = true);

[C++]
    void Rename(const std::string &URL, const std::string &NewName, bool MoveToRename, TElWebDAVLockList &Locks);
    void Rename(const std::string &URL, const std::string &NewName, bool MoveToRename, TElWebDAVLockList *Locks);
    void Rename(TElWebDAVStorageObject &Obj, const std::string &NewName, bool MoveToRename);
    void Rename(TElWebDAVStorageObject *Obj, const std::string &NewName, bool MoveToRename);

[PHP]
    void Rename(string $URL, string $NewName, bool $MoveToRename, TElWebDAVLockList $Locks)
    void Rename(TElWebDAVStorageObject $Obj, string $NewName, bool $MoveToRename)

[Java]
    void rename(TElWebDAVStorageObject Obj, String NewName, boolean MoveToRename);
    void rename(String URL, String NewName, boolean MoveToRename, TElWebDAVLockList Locks);

Parameters

  • URL - URL of the object to rename.
  • Obj - the object to rename.
  • NewName - the new name of the object.
  • MoveToRename - specifies if the object should be moved or copied.
  • Locks - the locks put on the object.

Description

    Use this method to rename a resource on the remote server.

See also:     CopyObject     MoveObject    

Discuss this help topic in SecureBlackbox Forum