.NET Framework Class Library
ServicedComponent.CanBePooled Method

This method is called by the infrastructure before the object is put back into the pool. Override this method to vote on whether the object is put back into the pool.

[Visual Basic]
Protected Friend Overridable Function CanBePooled() As Boolean
[C#]
protected internal virtual bool CanBePooled();
[C++]
protected public: virtual bool CanBePooled();
[JScript]
protected internal function CanBePooled() : Boolean;

Return Value

true if the serviced component can be pooled; otherwise, false.

Requirements

Platforms: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

ServicedComponent Class | ServicedComponent Members | System.EnterpriseServices Namespace

Page view tracker