Edit

Share via


CodeBlockType Enum

Definition

Specifies the type of the code block.

C#
public enum CodeBlockType
Inheritance
CodeBlockType

Fields

Name Value Description
Code 0

Indicates that the block type is for code. A Code block type is contained inside the <% %> characters.

Expression 1

Indicates that the block type is for data expressions. A Expression block type is contained inside the <%= %> characters.

DataBinding 2

Indicates that the block type is for data binding. A DataBinding block type is contained inside the <%# %> characters.

EncodedExpression 3

Indicates that the block type is for encoded expressions. A EncodedExpression block type is contained inside the <%: %> characters.

Applies to

Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1