LinePragmaCodeInfo 构造函数

定义

初始化 LinePragmaCodeInfo 类的新实例。Initializes a new instance of the LinePragmaCodeInfo class.

重载

LinePragmaCodeInfo()

初始化 LinePragmaCodeInfo 类的新实例。Initializes a new instance of the LinePragmaCodeInfo class.

LinePragmaCodeInfo(Int32, Int32, Int32, Int32, Boolean)

使用用于初始化 LinePragmaCodeInfoStartLineStartColumnStartGeneratedColumnCodeLength 属性的参数初始化 IsCodeNugget 类的新实例。Initializes a new instance of the LinePragmaCodeInfo class with parameters for initializing the StartLine, StartColumn, StartGeneratedColumn, CodeLength, and IsCodeNugget properties.

LinePragmaCodeInfo()

初始化 LinePragmaCodeInfo 类的新实例。Initializes a new instance of the LinePragmaCodeInfo class.

public:
 LinePragmaCodeInfo();
public LinePragmaCodeInfo ();
Public Sub New ()

注解

若要使用实例的属性 LinePragmaCodeInfo ,请使用采用参数的构造函数重载。To use the properties of a LinePragmaCodeInfo instance, use the constructor overload that takes parameters.

另请参阅

适用于

LinePragmaCodeInfo(Int32, Int32, Int32, Int32, Boolean)

使用用于初始化 LinePragmaCodeInfoStartLineStartColumnStartGeneratedColumnCodeLength 属性的参数初始化 IsCodeNugget 类的新实例。Initializes a new instance of the LinePragmaCodeInfo class with parameters for initializing the StartLine, StartColumn, StartGeneratedColumn, CodeLength, and IsCodeNugget properties.

public:
 LinePragmaCodeInfo(int startLine, int startColumn, int startGeneratedColumn, int codeLength, bool isCodeNugget);
public LinePragmaCodeInfo (int startLine, int startColumn, int startGeneratedColumn, int codeLength, bool isCodeNugget);
new System.Web.Compilation.LinePragmaCodeInfo : int * int * int * int * bool -> System.Web.Compilation.LinePragmaCodeInfo
Public Sub New (startLine As Integer, startColumn As Integer, startGeneratedColumn As Integer, codeLength As Integer, isCodeNugget As Boolean)

参数

startLine
Int32

.aspx 文件中某个脚本块的起始行。The starting line of a script block in an .aspx file.

startColumn
Int32

.aspx 文件中某个脚本块的起始列。The starting column of a script block in an .aspx file.

startGeneratedColumn
Int32

所生成源文件中某个脚本块的起始列。The starting column of a script block in the generated source file.

codeLength
Int32

脚本块的长度。The length of the script block.

isCodeNugget
Boolean

一个值,用于指示脚本块是否位于 <% %> 标记内。A value indicating whether the script block is located inside <% %> tags.

另请参阅

适用于