Click or drag to resize
AdvancedGetFileServicePrepareFileContentResult Method
Prepares the CMSFileContentResult object with common properties populated.

Namespace: CMS.Routing.Web
Assembly: CMS.Routing.Web (in CMS.Routing.Web.dll) Version: 13.0.131
Syntax
C#
protected CMSFileContentResult PrepareFileContentResult(
	string fileName,
	string extension,
	string contentType,
	string eTag,
	DateTime lastModified,
	bool useClientCache,
	bool publicCache = true
)

Parameters

fileName
Type: SystemString
File name (e.g. image.png)
extension
Type: SystemString
File extension.
contentType
Type: SystemString
The Content-Type header for the response.
eTag
Type: SystemString
Entity tag of object.
lastModified
Type: SystemDateTime
Last modified date.
useClientCache
Type: SystemBoolean
True if client caching is enabled.
publicCache (Optional)
Type: SystemBoolean
True if object can be cached by clients and proxies, false if only by clients.

Return Value

Type: CMSFileContentResult
See Also