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.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 10.0.0
Syntax 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:
StringFormat 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