Click or drag to resize
IMediaFileUrlDirectPath Property
Direct path of the media file.

Namespace: Kentico.Content.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
string DirectPath { get; }

Property Value

Type: String
Remarks
Generates various path types depending on the media library location:
PathLocation
~/mediaLibraryFolder/filename.extensionMedia file is located in a local media library on the current site.
http://domain.com/mediaLibraryFolder/filename.extensionMedia file is located in a local media library on a different site.
http://CDN/mediaLibraryFolder/filename.extensionMedia file is located in a media library stored in CDN.
~/getmedia/fileGUID/fileName.extensionMedia file is located in a media library which is located outside of the CMS application on the current site.
http://domain.com/getmedia/fileGUID/fileName.extensionMedia file is located in a media library which is located outside of the CMS application on a different site.
See Also