Encapsulates a File Transfer Protocol (FTP) server's response to a request.
Assembly: System (in System.dll)
Gets the message sent by the FTP server when a connection is established prior to logon.
Gets the length of the data received from the FTP server.(Overrides WebResponse.ContentLength.)
When overridden in a derived class, gets or sets the content type of the data being received.(Inherited from WebResponse.)
Gets the message sent by the server when the FTP session is ending.
Gets the date and time that a file on an FTP server was last modified.
Gets the URI that sent the response to the request.(Overrides WebResponse.ResponseUri.)
Gets the most recent status code sent from the FTP server.
Gets text that describes a status code sent from the FTP server.
Gets the message sent by the FTP server when authentication is complete.
Frees the resources held by the response.(Overrides WebResponse.Close().)
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.(Inherited from MarshalByRefObject.)
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Serves as the default hash function. (Inherited from Object.)
Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.)
Retrieves the stream that contains response data sent from an FTP server.(Overrides WebResponse.GetResponseStream().)
Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.)
Returns a string that represents the current object.(Inherited from Object.)
The StatusCode property contains the status code returned by the server, and the StatusDescription property returns the status code and a message that describes the status. The values returned by these properties change as the messages are returned by the server.
Any data returned by the request, such as the list of file names returned for a ListDirectory request, is available in the stream returned by the GetResponseStream method. The length of the stream data can be obtained from the ContentLength property.
The following code example sends a request to delete a file on an FTP server and displays the status message from the server's response to the request. For additional examples, see the members of the WebRequestMethods.Ftp and FtpWebRequest classes.
Available since 2.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.