Click or drag to resize
MediaFileInfoProviderCopyMediaFile Method
Copy media file.

Namespace: CMS.MediaLibrary
Assembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 11.0.0
Syntax
C#
public static void CopyMediaFile(
	string siteName,
	int libraryID,
	string origPath,
	string newPath,
	bool synchronization = false,
	int userId = 0
)

Parameters

siteName
Type: SystemString
Site name
libraryID
Type: SystemInt32
Library ID
origPath
Type: SystemString
Old file path within the library folder
newPath
Type: SystemString
New file path within the library folder
synchronization (Optional)
Type: SystemBoolean
Indicates if method is running by web farms synchronization
userId (Optional)
Type: SystemInt32
ID of the user performing copy action
See Also