FtpWebResponse Class
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Encapsulates a File Transfer Protocol (FTP) server's response to a request.
Inheritance Hierarchy
System. . :: . .Object
System. . :: . .MarshalByRefObject
System.Net. . :: . .WebResponse
System.Net..::..FtpWebResponse
Namespace: System.Net
Assembly: System.Ftp (in System.Ftp.dll)
Syntax
'Declaration
Public Class FtpWebResponse _
Inherits WebResponse
public class FtpWebResponse : WebResponse
public ref class FtpWebResponse : public WebResponse
type FtpWebResponse =
class
inherit WebResponse
end
public class FtpWebResponse extends WebResponse
The FtpWebResponse type exposes the following members.
Properties
Name | Description | |
---|---|---|
ContentLength | When overridden in a descendant class, gets or sets the content length of data being received. (Inherited from WebResponse.) | |
ContentType | When overridden in a derived class, gets or sets the content type of the data being received. (Inherited from WebResponse.) | |
Headers | When overridden in a derived class, gets a collection of header name-value pairs associated with this request. (Inherited from WebResponse.) | |
ResponseUri | When overridden in a derived class, gets the URI of the Internet resource that actually responded to the request. (Inherited from WebResponse.) |
Top
Methods
Name | Description | |
---|---|---|
Close | Frees the resources held by the response. (Overrides WebResponse. . :: . .Close() () () ().) | |
Dispose() () () () | Releases the unmanaged resources used by the WebResponse object. (Inherited from WebResponse.) | |
Dispose(Boolean) | Releases the unmanaged resources used by the WebResponse object, and optionally disposes of the managed resources. (Inherited from WebResponse.) | |
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Performs clean-up operations. (Inherited from WebResponse.) | |
GetHashCode | Serves as a hash function for a particular type. (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.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.