CodeGeneratorContext.ExpressionRenderingMode Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The current C# rendering mode.
public:
property Microsoft::AspNetCore::Razor::CodeGenerators::ExpressionRenderingMode ExpressionRenderingMode { Microsoft::AspNetCore::Razor::CodeGenerators::ExpressionRenderingMode get(); void set(Microsoft::AspNetCore::Razor::CodeGenerators::ExpressionRenderingMode value); };
public Microsoft.AspNetCore.Razor.CodeGenerators.ExpressionRenderingMode ExpressionRenderingMode { get; set; }
member this.ExpressionRenderingMode : Microsoft.AspNetCore.Razor.CodeGenerators.ExpressionRenderingMode with get, set
Public Property ExpressionRenderingMode As ExpressionRenderingMode
Property Value
Remarks
WriteToOutput forces C# generation to write Chunks to the output page, i.e. WriteLiteral("Hello World"). InjectCode writes Chunk values in their rawest form, i.g. "Hello World".