Copy a resource to a new location.
ANSI (Cross Platform) int CopyResource(const char* lpszSourceResourceURI, const char* lpszDestinationResourceURI); Unicode (Windows) INT CopyResource(LPCWSTR lpszSourceResourceURI, LPCWSTR lpszDestinationResourceURI);
- (void)copyResource:(NSString*)sourceResourceURI :(NSString*)destinationResourceURI;
#define MID_WEBDAV_COPYRESOURCE 5 IPWORKS_EXTERNAL int IPWORKS_CALL IPWorks_WebDAV_Do(void *lpObj, int methid, int cparam, void *param, int cbparam, int64 *lpllVal);
The CopyResource method will copy 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 copy only SourceResourceURI. If Depth is set to "infinity", the class will copy 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.)