Click or drag to resize
MetaFileURLProviderGetMetaFileUrlFormat 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: 10.0.0
Syntax
C#
public static string GetMetaFileUrlFormat(
	string siteName = null
)

Parameters

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
Examples
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