Discuss this help topic in SecureBlackbox Forum

TElWebDAVClient.Rename

TElWebDAVClient     See also     


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


Renames an object on the server.

Declaration

[C#/Java]
    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; const MoveToRename : boolean = true; const Locks : TElWebDAVLockList = nil);
    procedure Rename(Obj : TElWebDAVStorageObject; const NewName : string; const 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)

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