System.Net.FtpWebResponse.StatusCode Property

Gets the most recent status code sent from the FTP server.

Syntax

public FtpStatusCode StatusCode { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The value returned by the FtpWebResponse.StatusCode property is included in the FtpWebResponse.StatusDescription property. When you are downloading data, the value of FtpWebResponse.StatusCode changes as status codes are returned by the FTP server. After you call the FtpWebRequest.GetResponse method, FtpWebResponse.StatusCode contains an intermediate status code. When you call the FtpWebResponse.Close method, FtpWebResponse.StatusCode contains the final status.

Requirements

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