AutomationRemoteOperationResult.ErrorLocation 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
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,這個屬性會傳回下一個在限制之後執行的指令。