ServicedComponent.CanBePooled 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
이 메서드는 개체가 풀에 다시 배치되기 전에 인프라에서 호출됩니다. 개체가 풀에 다시 배치되는지 여부를 투표하려면 이 메서드를 재정의합니다.
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