In The Hand - .NET Components for Mobility
FtpWebResponse Class
NamespacesInTheHand.NetFtpWebResponse
Encapsulates a File Transfer Protocol (FTP) server's response to a request.
Declaration Syntax
C#Visual Basic
public class FtpWebResponse : WebResponse
Public Class FtpWebResponse _
	Inherits WebResponse
Members
All MembersMethodsProperties



IconMemberDescription
Close()()()
Frees the resources held by the response.
(Overrides WebResponse.Close()()().)
ContentLength
Gets the length of the data received from the FTP server.
(Overrides WebResponse.ContentLength.)
ContentType
When overridden in a derived class, gets or sets the content type of the data being received.
(Inherited from WebResponse.)
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()
Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
GetResponseStream()()()
Retrieves the stream that contains response data sent from an FTP server.
(Overrides WebResponse.GetResponseStream()()().)
GetType()()()
Gets the Type of the current instance.
(Inherited from Object.)
Headers
When overridden in a derived class, gets a collection of header name-value pairs associated with this request.
(Inherited from WebResponse.)
LastModified
Gets the date and time that a file on an FTP server was last modified.

MemberwiseClone()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
ResponseUri
Gets the URI that sent the response to the request.
(Overrides WebResponse.ResponseUri.)
StatusCode
Gets the most recent status code sent from the FTP server.

StatusDescription
Gets text that describes a status code sent from the FTP server.

ToString()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Remarks
Instances of FtpWebResponse are obtained by calling the GetResponse()()() method. The returned object must be cast to an FtpWebResponse. When your application no longer needs the FtpWebResponse object, call the Close()()() method to free the resources held by the FtpWebResponse.

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.

Inheritance Hierarchy
See Also
[!:System.Net.FtpWebResponse]

Assembly: InTheHand.Net (Module: InTheHand.Net) Version: 2.1.0.0