System.Net.FtpWebResponse.Close Method

Frees the resources held by the response.

Syntax

public override void Close ()

Remarks

The FtpWebResponse.Close method closes the data stream returned by the FtpWebResponse.GetResponseStream method if the FtpWebRequest.KeepAlive property is false. During the close, data might be sent to the server on the control connection.

Note:

This member outputs trace information when you enable network tracing in your application. For more information, see [<topic://conUsingNetworkTracing>].

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0