Returns URL to file.
Namespace: CMS.FileSystemStorageAssembly: CMS.IO (in CMS.IO.dll) Version: 12.0.0
Syntax public override string GetFileUrl(
string path,
string siteName
)
Parameters
- path
- Type: SystemString
Virtual path starting with ~ or absolute path. - siteName
- Type: SystemString
Site name.
Return Value
Type:
StringRemarks
Uses
GetFileUrlForPath event to get web application related path. Returns null if executed outside the web application.
See Also