DefaultPooledObjectPolicy<T> 类

定义

的默认实现 PooledObjectPolicy<T>

generic <typename T>
 where T : class, gcnew()public ref class DefaultPooledObjectPolicy : Microsoft::Extensions::ObjectPool::IPooledObjectPolicy<T>
generic <typename T>
 where T : class, gcnew()public ref class DefaultPooledObjectPolicy : Microsoft::Extensions::ObjectPool::PooledObjectPolicy<T>
public class DefaultPooledObjectPolicy<T> : Microsoft.Extensions.ObjectPool.IPooledObjectPolicy<T> where T : class, new()
public class DefaultPooledObjectPolicy<T> : Microsoft.Extensions.ObjectPool.PooledObjectPolicy<T> where T : class, new()
type DefaultPooledObjectPolicy<'T (requires 'T : null and 'T : (new : unit -> 'T))> = class
    interface IPooledObjectPolicy<'T (requires 'T : null and 'T : (new : unit -> 'T))>
type DefaultPooledObjectPolicy<'T (requires 'T : null and 'T : (new : unit -> 'T))> = class
    inherit PooledObjectPolicy<'T (requires 'T : null and 'T : (new : unit -> 'T))>
Public Class DefaultPooledObjectPolicy(Of T)
Implements IPooledObjectPolicy(Of T)
Public Class DefaultPooledObjectPolicy(Of T)
Inherits PooledObjectPolicy(Of T)

类型参数

T

正在共用的对象的类型。

继承
DefaultPooledObjectPolicy<T>
继承
DefaultPooledObjectPolicy<T>
实现

构造函数

DefaultPooledObjectPolicy<T>()

的默认实现 PooledObjectPolicy<T>

方法

Create()

创建一个 T

Equals(Object)

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

(继承自 Object)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
Return(T)

当对象返回到池时执行一些处理。 可用于重置对象的状态,并指示是否应将该对象返回到池中。

ToString()

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

(继承自 Object)

适用于