語言

StackWalker.IStackFrame.ByteCodeIndex 屬性

定義

取得該堆疊框架在方法的 Dalvik 位元碼中所代表指令的索引。

public int ByteCodeIndex { [Android.Runtime.Register("getByteCodeIndex", "()I", "GetGetByteCodeIndexHandler:Java.Lang.StackWalker/IStackFrameInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)] get; }
[<get: Android.Runtime.Register("getByteCodeIndex", "()I", "GetGetByteCodeIndexHandler:Java.Lang.StackWalker/IStackFrameInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)>]
member this.ByteCodeIndex : int

屬性值

Dalvik code_iteminsns 陣列中的 16 位元編碼單位索引,若該方法為原生,則為負數。

屬性

備註

回傳包含此堆疊框架所代表執行點的 Dalvik code_item陣 insns 列中的索引。 索引以 16 位元編碼單位衡量。 對於原生方法,回傳負數。

適用於