語言

Debug.SetAllocationLimit(Int32) 方法

定義

警告

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,且無效。

此會員已被棄用。 此方法現已過時。

Java 文件 android.os.Debug.setAllocationLimit(int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於