Click or drag to resize
MediaFileInfoProviderMoveMediaFile Method (String, Int32, String, String, Boolean)
Moves media file within one library.

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

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
See Also