다음을 통해 공유


FtpClientConnection.Close 메서드

정의

FTP 연결을 닫습니다.

public:
 void Close();
public void Close ();
member this.Close : unit -> unit
Public Sub Close ()

예제

다음 코드 예제에서는 연결이 있는지 FtpClientConnection 확인합니다. 이 경우 .을 사용하여 Close연결이 닫힙니다.

// Close the connection to the FTP Server, if it is connected.  
if (ftpClientConnection != null)  
    ftpClientConnection.Close();  
' Close the connection to the FTP Server, if it is connected.  
If Not ftpClientConnection Is Nothing Then  
    ftpClientConnection.Close()  
End If  

적용 대상