Moves one resource to a new location.
ANSI (Cross Platform) int MoveResource(const char* lpszSourceResourceURI, const char* lpszDestinationResourceURI); Unicode (Windows) INT MoveResource(LPCWSTR lpszSourceResourceURI, LPCWSTR lpszDestinationResourceURI);
- (void)moveResource:(NSString*)sourceResourceURI :(NSString*)destinationResourceURI;
#define MID_WEBDAV_MOVERESOURCE 16 IPWORKS_EXTERNAL int IPWORKS_CALL IPWorks_WebDAV_Do(void *lpObj, int methid, int cparam, void *param, int cbparam, int64 *lpllVal);
The MoveResource method will move the resource indicated by SourceResourceURI to a new location under the resource indicated by DestinationResourceURI.
This method is associated with the Depth property. If Depth is set to "0", the class will move only SourceResourceURI. If Depth is set to "infinity", the class will move SourceResourceURI and its entire subtree to locations relative to it.
If the user has acquired a LockResource of infinite depth on either DestinationResourceURI or any collection it is under, SourceResourceURI will be added to that lock.
Error Handling (C++)
This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)