Click or drag to resize
FileGetFileUrl Method
Returns URL to file.

Namespace: CMS.FileSystemStorage
Assembly: CMS.IO (in CMS.IO.dll) Version: 11.0.0
Syntax
C#
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: String
Remarks
Uses GetFileUrlForPath event to get web application related path. Returns null if executed outside the web application.
See Also