Click or drag to resize

RazorCoreEngine Methods

The RazorCoreEngine type exposes the following members.

Methods
 NameDescription
Public methodStatic memberCompile Compile 'script' under 'key' (no-op if already cached). When cacheDir is set, a persisted assembly is reused (and invalidated by lastModification), mirroring GetGlobalAssemblyCache/SaveAssemblyInCache.
Public methodStatic memberIsTemplateCached Returns true if a compiled template is cached under the given key
Public methodStatic memberRun Run the compiled template cached under 'key' with the given model and ViewBag, and return the rendered result
Top
See Also