共用方式為


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 命名空間