SourceLocation 建構函式

定義

建立一個新的類別實例 SourceLocation

多載

名稱 Description
SourceLocation(String, Int32)

建立一個新的類別實例 SourceLocation ,指定原始碼檔名及該檔案中行數。

SourceLocation(String, Int32, Int32, Int32, Int32)

建立一個新的類別實例 SourceLocation ,指定原始碼檔案名稱及該檔案中資料範圍的參數。

SourceLocation(String, Int32)

建立一個新的類別實例 SourceLocation ,指定原始碼檔名及該檔案中行數。

public:
 SourceLocation(System::String ^ fileName, int line);
public SourceLocation(string fileName, int line);
new System.Activities.Debugger.SourceLocation : string * int -> System.Activities.Debugger.SourceLocation
Public Sub New (fileName As String, line As Integer)

參數

fileName
String

一個原始碼檔案。

line
Int32

原始碼檔案中一行的行號。

適用於

SourceLocation(String, Int32, Int32, Int32, Int32)

建立一個新的類別實例 SourceLocation ,指定原始碼檔案名稱及該檔案中資料範圍的參數。

public:
 SourceLocation(System::String ^ fileName, int startLine, int startColumn, int endLine, int endColumn);
public SourceLocation(string fileName, int startLine, int startColumn, int endLine, int endColumn);
new System.Activities.Debugger.SourceLocation : string * int * int * int * int -> System.Activities.Debugger.SourceLocation
Public Sub New (fileName As String, startLine As Integer, startColumn As Integer, endLine As Integer, endColumn As Integer)

參數

fileName
String

一個原始碼檔案的名稱。

startLine
Int32

一個編號,代表原始碼檔案中讀取開始的行。

startColumn
Int32

一個編號,用來指定原始碼檔案中讀取開始的欄位。

endLine
Int32

一個編號,代表原始碼檔案中讀取結束的行。

endColumn
Int32

一個編號,用來指定原始碼檔案中讀取結束的欄位。

適用於