Class MediaFileURLProvider
- Namespace
- CMS.MediaLibrary
- Assembly
- CMS.MediaLibrary.dll
URL provider for the media files.
public class MediaFileURLProvider : AbstractBaseProvider<MediaFileURLProvider>, ICustomizableProvider
- Inheritance
-
objectMediaFileURLProvider
- Implements
- Inherited Members
- Extension Methods
Methods
GetMediaFileUrl(MediaFileInfo, string)
Returns relative URL path to the media file.
public static string GetMediaFileUrl(MediaFileInfo fileInfo, string libraryFolder)
Parameters
fileInfo
MediaFileInfoMedia file info object
libraryFolder
stringLibrary folder name
Returns
- string
GetMediaFileUrl(Guid, string)
Returns relative URL path to the media file which is rewritten to calling GetMediaFile.aspx page where user permissions are checked.
public static string GetMediaFileUrl(Guid fileGuid, string fileName)
Parameters
fileGuid
GuidFile GUID
fileName
stringFile name
Returns
- string
GetMediaFileUrl(string, string)
Returns relative URL path to the media file.
public static string GetMediaFileUrl(string libraryFolder, string filePath)
Parameters
libraryFolder
stringLibrary folder name
filePath
stringFile path within the library folder
Returns
- string
GetMediaFileUrlInternal(MediaFileInfo, string, string)
Returns relative URL path to the media file.
protected virtual string GetMediaFileUrlInternal(MediaFileInfo fileInfo, string libraryFolder, string filePath)
Parameters
fileInfo
MediaFileInfoMedia file info object
libraryFolder
stringLibrary folder name
filePath
stringFile path within the library folder
Returns
- string
GetMediaFileUrlInternal(Guid, string)
Returns relative URL path to the media file which is rewritten to calling GetMediaFile.aspx page where user permissions are checked.
protected virtual string GetMediaFileUrlInternal(Guid fileGuid, string fileName)
Parameters
fileGuid
GuidFile GUID
fileName
stringFile name
Returns
- string