Click or drag to resize
AdvancedGetFileServicePreparePhysicalFileResult Method
Prepares the CMSPhysicalFileResult 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 CMSPhysicalFileResult PreparePhysicalFileResult(
	string path,
	string fileName,
	string extension,
	string contentType,
	string eTag,
	DateTime lastModified,
	bool useClientCache,
	bool publicCache = true
)

Parameters

path
Type: SystemString
Path to the file that will be sent back as the response.
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: CMSPhysicalFileResult
See Also