RazorHelperCompileExecute Method |
Compile a Razor script (if not already cached) and execute it with the given model. Returns the result of the script execution.
Namespace: Seal.HelpersAssembly: SealLibrary (in SealLibrary.dll) Version: 10.0.1.0+a44cd3a7f03c2bf3cdbd971a878c679e40bed08a
Syntaxpublic static string CompileExecute(
string script,
Object model,
string key = null,
DateTime? lastModification = null
)
Parameters
- script String
-
- model Object
-
- key String (Optional)
-
- lastModification NullableDateTime (Optional)
-
Return Value
String
See Also