SourceCodePosition 构造函数
使用提供的参数初始化 SourceCodePosition 类的新实例。
命名空间: Microsoft.Data.Schema.SchemaModel
程序集: Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)
语法
声明
Public Sub New ( _
isPrimary As Boolean, _
startOffset As Integer, _
length As Integer, _
startLine As Integer, _
startColumn As Integer, _
sourceName As String _
)
public SourceCodePosition(
bool isPrimary,
int startOffset,
int length,
int startLine,
int startColumn,
string sourceName
)
public:
SourceCodePosition(
bool isPrimary,
int startOffset,
int length,
int startLine,
int startColumn,
String^ sourceName
)
new :
isPrimary:bool *
startOffset:int *
length:int *
startLine:int *
startColumn:int *
sourceName:string -> SourceCodePosition
public function SourceCodePosition(
isPrimary : boolean,
startOffset : int,
length : int,
startLine : int,
startColumn : int,
sourceName : String
)
参数
- isPrimary
类型:System.Boolean
如果这是其定义的元素的主要源,则为 true。
- startOffset
类型:System.Int32
定义在源文件中的起始偏移量。
- length
类型:System.Int32
定义的长度。
- startLine
类型:System.Int32
定义的起始行。
- startColumn
类型:System.Int32
定义的起始列。
- sourceName
类型:System.String
源的名称,通常为文件名。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。