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 属性许可证中所述的术语使用。