Dela via


CodeGeneratorContext.ExpressionRenderingMode Property

Definition

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".

Applies to