Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CreateCachedFile Method

BuildManager.CreateCachedFile Method

.NET Framework 4.6 and 4.5

Creates a cached file.

Namespace:  System.Web.Compilation
Assembly:  System.Web (in System.Web.dll)

'Declaration
Public Shared Function CreateCachedFile ( _
	fileName As String _
) As Stream

Parameters

fileName
Type: System.String

The name of the file to create.

Return Value

Type: System.IO.Stream
The Stream object for the new file.

This method and the ReadCachedFile method enable you to perform caching that persists across application domain restarts in partial-trust environments. It is used by the MVC framework to cache results of the controller lookup.

To cache data, you write to the Stream object that is returned by this method.

.NET Framework

Supported in: 4.6, 4.5, 4
Show:
© 2015 Microsoft