MediaFileInfoProviderSetMediaFileInfo Method |
Note: This API is now obsolete.
Namespace: CMS.MediaLibrary
[ObsoleteAttribute("Use IMediaFileInfoProvider.Set(MediaFileInfo) instead. To indicate whether unique file name is to be ensured, use the MediaFileInfo.EnsureUniqueFileName(bool) method. Set the MediaFileInfo.FileCreatedByUserID and MediaFileInfo.FileModifiedByUserID properties explicitly instead of passing the user ID. To get an instance of the interface's implementation, use dependency injection or access the instance directly - MediaFileInfo.Provider.")] public static void SetMediaFileInfo( MediaFileInfo mediaFile, bool ensureUniqueFileName = true, int userId = 0 )