MediaFileInfoProvider SetMediaFileInfo Method Kentico 8.0 API Reference
Sets (updates or inserts) specified media file.

Namespace: CMS.MediaLibrary
Assembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

mediaFile
Type: CMS.MediaLibrary MediaFileInfo
Media file to set
ensureUniqueFileName (Optional)
Type: OnlineSystem Boolean
Indicates if unique file name should be ensured
userId (Optional)
Type: OnlineSystem Int32
ID of the user performing set action
See Also