ObjectPoolingAttribute.Apply(Hashtable) 方法

定义

ObjectPoolingAttribute 类特性应用到某个服务组件时,由 .NET Framework 基础结构在内部调用。Called internally by the .NET Framework infrastructure while applying the ObjectPoolingAttribute class attribute to a serviced component.

public:
 virtual bool Apply(System::Collections::Hashtable ^ info);
public bool Apply (System.Collections.Hashtable info);
abstract member Apply : System.Collections.Hashtable -> bool
override this.Apply : System.Collections.Hashtable -> bool
Public Function Apply (info As Hashtable) As Boolean

参数

info
Hashtable

一个哈希表,包含应用了对象池属性且由内部键引用的内部对象。A hash table that contains an internal object to which object pooling properties are applied, referenced by an internal key.

返回

Boolean

如果该方法已发生更改,则为 true;否则为 falsetrue if the method has made changes; otherwise, false.

注解

即使它是一个公共方法,该 Apply 方法也仅用于 .NET Framework 基础结构中。Even though it is a public method, the Apply method is intended only to be used from within the .NET Framework infrastructure. 开发人员可以应用 ObjectPoolingAttribute 类属性并在其接口中设置其他成员。It is sufficient for a developer to apply the ObjectPoolingAttribute class attribute and set other members in its interface.

适用于