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.

적용 대상