ErrObject.Erl 屬性
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得整數,指出最後執行之陳述式的行數。
public:
property int Erl { int get(); };
C#
public int Erl { get; }
member this.Erl : int
Public ReadOnly Property Erl As Integer
最後一個執行語句的行號。
這個範例會 Erl
使用 屬性來指出行號。
10: On Error Resume Next
20: Err.Raise(60000)
' Returns 20.
30: MsgBox(Erl())
如果 Visual Basic 沒有遇到行號,則會傳回 0。
產品 | 版本 |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |