IPooledObjectPolicy<T> 接口

定义

表示用于管理共用对象的策略。Represents a policy for managing pooled objects.

generic <typename T>
public interface class IPooledObjectPolicy
public interface IPooledObjectPolicy<T>
type IPooledObjectPolicy<'T> = interface
Public Interface IPooledObjectPolicy(Of T)

类型参数

T

正在进行缓冲的对象的类型。The type of object which is being pooled.

派生

方法

Create()

创建 TCreate a T.

Return(T)

当对象返回到池时执行一些处理。Runs some processing when an object was returned to the pool. 可用于重置对象的状态,并指示是否应将该对象返回到池中。Can be used to reset the state of an object and indicate if the object should be returned to the pool.

适用于