LeakTrackingObjectPool<T> 类

定义

注意

LeakTrackingObjectPool<T> was only intended for internal use in diagnostic builds of .NET. It never functioned in publicly shipped .NET versions and may be removed in a future release.

一种 ObjectPool<T> 实现,用于检测使用对象池时发生泄漏。

如果对象是从池租用的,但在最终确定之前未返回对象,则会生成泄漏。 仅在生成中 Debug 生成错误。 仅建议将此类型用于诊断生成。

generic <typename T>
 where T : classpublic ref class LeakTrackingObjectPool : Microsoft::Extensions::ObjectPool::ObjectPool<T>
public class LeakTrackingObjectPool<T> : Microsoft.Extensions.ObjectPool.ObjectPool<T> where T : class
[System.Obsolete("LeakTrackingObjectPool<T> was only intended for internal use in diagnostic builds of .NET. It never functioned in publicly shipped .NET versions and may be removed in a future release.")]
public class LeakTrackingObjectPool<T> : Microsoft.Extensions.ObjectPool.ObjectPool<T> where T : class
type LeakTrackingObjectPool<'T (requires 'T : null)> = class
    inherit ObjectPool<'T (requires 'T : null)>
[<System.Obsolete("LeakTrackingObjectPool<T> was only intended for internal use in diagnostic builds of .NET. It never functioned in publicly shipped .NET versions and may be removed in a future release.")>]
type LeakTrackingObjectPool<'T (requires 'T : null)> = class
    inherit ObjectPool<'T (requires 'T : null)>
Public Class LeakTrackingObjectPool(Of T)
Inherits ObjectPool(Of T)

类型参数

T

正在共用的对象的类型。

继承
LeakTrackingObjectPool<T>
属性

构造函数

LeakTrackingObjectPool<T>(ObjectPool<T>)
已过时.

初始化 LeakTrackingObjectPool<T> 的新实例。

方法

Equals(Object)
已过时.

确定指定对象是否等于当前对象。

(继承自 Object)
Get()
已过时.

从池中获取一个对象(如果有),否则创建一个对象。

GetHashCode()
已过时.

作为默认哈希函数。

(继承自 Object)
GetType()
已过时.

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()
已过时.

创建当前 Object 的浅表副本。

(继承自 Object)
Return(T)
已过时.

将对象返回到池。

ToString()
已过时.

返回表示当前对象的字符串。

(继承自 Object)

适用于