Debug.SetAllocationLimit(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
deprecated
在目前線程中建立物件配置限制。
[Android.Runtime.Register("setAllocationLimit", "(I)I", "")]
[System.Obsolete("deprecated")]
public static int SetAllocationLimit (int limit);
[<Android.Runtime.Register("setAllocationLimit", "(I)I", "")>]
[<System.Obsolete("deprecated")>]
static member SetAllocationLimit : int -> int
參數
- limit
- Int32
傳回
- 屬性
備註
在目前線程中建立物件配置限制。 此功能從未在發行組建中啟用。 Honeycomb 已移除配置限制功能。 這個方法適用於相容性,而且一律會傳回 -1,而且沒有作用。
已取代這個成員。 此方法現在已過時。
的 android.os.Debug.setAllocationLimit(int)
Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。