Share via


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
Public property ContentLength When overridden in a descendant class, gets or sets the content length of data being received. (Inherited from WebResponse.)
Public property ContentType When overridden in a derived class, gets or sets the content type of the data being received. (Inherited from WebResponse.)
Public property Headers When overridden in a derived class, gets a collection of header name-value pairs associated with this request. (Inherited from WebResponse.)
Public property 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
Public method Close Frees the resources held by the response. (Overrides WebResponse. . :: . .Close() () () ().)
Public method Dispose() () () () Releases the unmanaged resources used by the WebResponse object. (Inherited from WebResponse.)
Protected method Dispose(Boolean) Releases the unmanaged resources used by the WebResponse object, and optionally disposes of the managed resources. (Inherited from WebResponse.)
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Performs clean-up operations. (Inherited from WebResponse.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetResponseStream Retrieves the stream that contains response data sent from an FTP server. (Overrides WebResponse. . :: . .GetResponseStream() () () ().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method 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.

See Also

Reference

System.Net Namespace