ServicedComponent.CanBePooled 메서드

정의

이 메서드는 개체가 풀에 다시 배치되기 전에 인프라에서 호출됩니다. 개체가 풀에 다시 배치되는지 여부를 투표하려면 이 메서드를 재정의합니다.

protected public:
 virtual bool CanBePooled();
protected internal virtual bool CanBePooled();
abstract member CanBePooled : unit -> bool
override this.CanBePooled : unit -> bool
Protected Friend Overridable Function CanBePooled () As Boolean

반품

서비스된 구성 요소를 풀할 수 있으면

예제

다음 코드 예제에서는이 메서드의 사용을 보여 줍니다.

// This object can be pooled.
virtual bool CanBePooled() override
{
   return (true);
}
// This object can be pooled.
protected override bool CanBePooled()
{
    return(true);
}
' This object can be pooled.
Protected Overrides Function CanBePooled() As Boolean 
    Return True

End Function 'CanBePooled

적용 대상