共用方式為


AutomationRemoteOperationResult.ErrorLocation 屬性

定義

取得位元組程式碼資料流程中指令的參考,其中遠端作業 狀態 不會傳回 Success

public:
 property int ErrorLocation { int get(); };
int ErrorLocation();
public int ErrorLocation { get; }
var int32 = automationRemoteOperationResult.errorLocation;
Public ReadOnly Property ErrorLocation As Integer

屬性值

Int32

int

備註

如果遠端作業 Status 傳回 MalformedBytecode,ErrorLocation 會指定格式錯誤的指令數目。 例如,如果第一個指令包含不正確 opcode,這個屬性會傳回值為 0。 如果前 5 個指令具有有效的 opcode 和參數,但第 6 個指令沒有,則此屬性會傳回值為 5。

針對 UnhandledException,這個屬性會傳回引發例外狀況之指令的索引。

針對 InstructionLimitExceeded,這個屬性會傳回下一個在限制之後執行的指令。

適用於