Click or drag to resize
MediaFileInfoProviderSetMediaFileInfoInternal Method

Note: This API is now obsolete.

Sets MediaFileInfo internal.

Namespace: CMS.MediaLibrary
Assembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 13.0.131
Syntax
C#
[ObsoleteAttribute("Use Set(MediaFileInfo) instead. To indicate whether file is to be saved and unique file name is to be ensured, use the MediaFileInfo.SaveFileToDisk(bool) and MediaFileInfo.EnsureUniqueFileName(bool) methods respectively. Set the MediaFileInfo.FileCreatedByUserID and MediaFileInfo.FileModifiedByUserID properties explicitly instead of passing the user ID.")]
protected virtual void SetMediaFileInfoInternal(
	MediaFileInfo mediaFile,
	bool saveFileToDisk,
	int userId,
	bool ensureUniqueFileName
)

Parameters

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