Click or drag to resize
MetaFileURLProviderGetMetaFileUrlFormatInternal Method
Returns format of the metafile URL in relative form (with ~). Meaning of the wildcards in returned URL: - {0} - metafile GUID. - {1} - extensionless metafile file name.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.2.23
protected virtual string GetMetaFileUrlFormatInternal(
	string siteName = null


siteName (Optional)
Type: SystemString
Sitename used for correct file extension. Null (default) specifies that file extension should be taken from global settings.

Return Value

Type: String
Format of the metafile URL
Example how the returned url can look like: ~/getmetafile/{0}/{1}.aspx (.aspx extension can differ based on what is set in settings key CMSFilesFriendlyURLExtension on site specified by siteName)
See Also