System 2.0.0.0 4.0.0.0 System.Net.WebResponse Instances of are obtained by calling the method. The returned object must be cast to an . When your application no longer needs the object, call the method to free the resources held by the . The property contains the status code returned by the server, and the 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 request, is available in the stream returned by the method. The length of the stream data can be obtained from the property. Encapsulates a File Transfer Protocol (FTP) server's response to a request. Property 2.0.0.0 4.0.0.0 System.String To be added. To be added. Gets the message sent by the FTP server when a connection is established prior to logon. Method 2.0.0.0 4.0.0.0 System.Void The method closes the data stream returned by the method if the property is false. During the close, data might be sent to the server on the control connection. This member outputs trace information when you enable network tracing in your application. For more information, see [<topic://conUsingNetworkTracing>]. Frees the resources held by the response. Property 2.0.0.0 4.0.0.0 System.Int64 To be added. When a response stream is returned by the FTP server, the property contains the number of bytes in the stream. returns −1 if no data was returned in the response or if the server did not send content length information. The return value is greater than or equal to zero if data was or should have been returned. For example, for requests that use the field, the property always returns −1. For requests that use the method, the property is always zero. For requests that use the method, the property is greater than zero if the downloaded file contained data and is zero if it was empty. For requests that use the method, returns the size of the specified file on the server. Gets the length of the data received from the FTP server. Property 2.0.0.0 4.0.0.0 System.String To be added. The property is not available until the connection to the server is closed or reused. If the property is true, the connection used by this request is not closed, which prevents the server from sending an exit message. Gets the message sent by the server when the FTP session is ending. Method 2.0.0.0 4.0.0.0 System.IO.Stream After reading the data, you must close the stream. The stream is automatically closed when you close the object that contains it. An exception is thrown unless the request method is or . Retrieves the stream that contains response data sent from an FTP server. A readable instance that contains data returned with the response; otherwise, if no response data was returned by the server. Property 2.0.0.0 4.0.0.0 System.Net.WebHeaderCollection To be added. The property is provided only for compatibility with other implementations of the and classes. Gets an empty object. Property 2.0.0.0 4.0.0.0 System.DateTime To be added. The property returns the data requested by the method. For requests sent using any other method, returns . Gets the date and time that a file on an FTP server was last modified. Property 2.0.0.0 4.0.0.0 System.Uri To be added. Because of server- and resource-specific behaviors, such as redirection, the value returned by the property is not always the same as the value returned by the property. For requests that use the method, returns the name of the file on the server. Gets the URI that sent the response to the request. Property 2.0.0.0 4.0.0.0 System.Net.FtpStatusCode To be added. The value returned by the property is included in the property. When you are downloading data, the value of changes as status codes are returned by the FTP server. After you call the method, contains an intermediate status code. When you call the method, contains the final status. Gets the most recent status code sent from the FTP server. Property 2.0.0.0 4.0.0.0 System.String To be added. The text returned by the property includes the 3-digit property value. When downloading data, the value of changes as status codes are returned by the FTP server. After you call the method, contains an intermediate status code. When you call the method, contains the final status. Gets text that describes a status code sent from the FTP server. Property 2.0.0.0 4.0.0.0 System.String To be added. If the connection is being reused (the property is set to true), the property returns the first welcome message received with the connection. Gets the message sent by the FTP server when authentication is complete.