Click or drag to resize
MediaFileInfoProviderSetMediaFileInfo Method
Sets (updates or inserts) specified media file.

Namespace: CMS.MediaLibrary
Assembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 8.2.23
Syntax
C#
public static void SetMediaFileInfo(
	MediaFileInfo mediaFile,
	bool ensureUniqueFileName = true,
	int userId = 0
)

Parameters

mediaFile
Type: CMS.MediaLibraryMediaFileInfo
Media file to set
ensureUniqueFileName (Optional)
Type: SystemBoolean
Indicates if unique file name should be ensured
userId (Optional)
Type: SystemInt32
ID of the user performing set action
See Also