The MediaLibraryHelper type exposes the following members.
Back to Top
Back to Top
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
MediaLibraryHelper |
Methods
Name | Description | |
---|---|---|
CloneLibraryFiles |
Clone media library files and folder to new media library.
| |
CopyRecursive(Int32, DirectoryInfo, String, String, Int32, String, Boolean) |
Recursive copy media library directory.
| |
CopyRecursive(Int32, DirectoryInfo, String, String, Int32, String, Boolean, Int32) |
Recursive copy media library directory.
| |
CopyRecursive(Int32, Int32, DirectoryInfo, String, String, Int32, String, Boolean, Int32, Boolean, CloneSettings, CloneResult) |
Recursive copy media library directory.
| |
EnsurePhysicalPath |
Return file path with replaced slash ("/") to back slash ("\").
| |
EnsureUniqueDirectory |
Ensures unique path for the specified directory. If the directory with the specified name already exist in the target location
new path with the added suffix is returned. The suffix consist of '_' sign and the number.
| |
EnsureUniqueFileName |
Ensures unique path for the specified file. If the directory with the specified name already exist in the target location
new path with the added suffix is returned. The suffix consist of '_' sign and the number.
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetAccessDeniedMessage |
Returns access denied message for specified permission.
| |
GetAllowedExtensions |
Returns allowed extensions list from settings.
| |
GetFolderDataSet |
Gets media folder empty DataSet.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetMediaFileHiddenFolder |
Returns media file hidden folder name from settings.
| |
GetMediaFilePreviewSuffix |
Returns media file preview suffix from settings.
| |
GetMediaFileUrl |
Returns media file URL according to site settings.
| |
GetMediaLibrariesFolder |
Returns root folder from settings where all media libraries are stored.
| |
GetMediaRootFolderPath |
Returns physical path to the directory where all media libraries are stored.
| |
GetMediaSource(Guid, String) |
Returns MediaSource for given media file.
| |
GetMediaSource(String, String, String) |
Returns MediaSource for given media file.
| |
GetPermissionMatrix |
Returns the permission matrix for the specified media library.
| |
GetPreviewFileName |
Returns media file preview file name.
| |
GetPreviewFilePath |
Returns media file preview file path.
| |
GetTaskTitle |
Gets task title.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HasPreview |
Returns true if file has preview file.
| |
IsExtensionAllowed |
Determines whether the file with the specified extension (case insensitive) can be uploaded into library module on site specified by name.
| |
IsExternalLibrary(String) | Obsolete.
Returns true if media library root folder is outside of CMS.
| |
IsExternalLibrary(String, String) |
Returns true if media library root folder is outside of CMS.
| |
LogSynchronization(String, Int32, String, String, TaskTypeEnum, Boolean) |
Logs the synchronization task for media folder.
| |
LogSynchronization(String, Int32, String, String, TaskTypeEnum, Int32) |
Logs the synchronization task for media folder.
| |
LogSynchronization(String, Int32, String, String, TaskTypeEnum, Int32, Boolean) |
Logs the synchronization task for media folder.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
MoveMediaFilePreview |
Moves preview file into new location according new media file name.
| |
ShowPreviewOrIcon |
Show preview file if exists or file icon.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Extension Methods
Name | Description | |
---|---|---|
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
Fields
Name | Description | |
---|---|---|
OBJECT_TYPE_FOLDER |
Object type for abstract media folder.
|
Properties
Name | Description | |
---|---|---|
MediaLibraryCustomPath |
Custom path to media library.
| |
SuffixRegex |
Suffix regex for files and folders.
|
See Also