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
    定义在源文件中的起始偏移量。
  • sourceName
    类型:System.String
    源的名称,通常为文件名。

.NET Framework 安全性

请参见

参考

SourceCodePosition 类

Microsoft.Data.Schema.SchemaModel 命名空间