PipelineComponent.ReleaseConnections 메서드

정의

AcquireConnections(Object)를 실행하는 동안 설정된 연결을 해제합니다. 디자인 타임과 런타임에 호출됩니다.

public:
 virtual void ReleaseConnections();
public virtual void ReleaseConnections ();
abstract member ReleaseConnections : unit -> unit
override this.ReleaseConnections : unit -> unit
Public Overridable Sub ReleaseConnections ()

예제

private System.Data.OleDb.OleDbConnection oledbConnection;  
public override void ReleaseConnections()  
{  
    if (oledbConnection != null && oledbConnection.State != ConnectionState.Closed )  
        oledbConnection.Close();  
}  
Private oledbConnection As System.Data.OleDb.OleDbConnection   

Public Overrides Sub ReleaseConnections()   
 If Not (oledbConnection Is Nothing) AndAlso Not (oledbConnection.State = ConnectionState.Closed) Then   
   oledbConnection.Close   
 End If   
End Sub  

설명

구성 요소 디자인 중 및 구성 요소 실행이 끝날 때 반복적으로 호출됩니다. 구성 요소는 열려 있고 유지 관리된 AcquireConnections모든 연결을 해제해야 합니다.

적용 대상