使用提供的參數,初始化 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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。