共用方式為


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)

適用於