SourceLocation 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建类的新实例 SourceLocation 。
重载
| 名称 | 说明 |
|---|---|
| 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
一个数字,指定读取结束的源代码文件中的列。