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.

Namespace:  System.Net
Assembly:  System.Ftp (in System.Ftp.dll)

public class FtpWebResponse : WebResponse

The FtpWebResponse type exposes the following members.

  NameDescription
Public propertyContentLengthWhen overridden in a descendant class, gets or sets the content length of data being received. (Inherited from WebResponse.)
Public propertyContentTypeWhen overridden in a derived class, gets or sets the content type of the data being received. (Inherited from WebResponse.)
Public propertyHeadersWhen overridden in a derived class, gets a collection of header name-value pairs associated with this request. (Inherited from WebResponse.)
Public propertyResponseUriWhen overridden in a derived class, gets the URI of the Internet resource that actually responded to the request. (Inherited from WebResponse.)
Top

  NameDescription
Public methodCloseFrees the resources held by the response. (Overrides WebResponse..::..Close()()()().)
Public methodDispose()()()()Releases the unmanaged resources used by the WebResponse object. (Inherited from WebResponse.)
Protected methodDispose(Boolean)Releases the unmanaged resources used by the WebResponse object, and optionally disposes of the managed resources. (Inherited from WebResponse.)
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizePerforms clean-up operations. (Inherited from WebResponse.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetResponseStreamRetrieves the stream that contains response data sent from an FTP server. (Overrides WebResponse..::..GetResponseStream()()()().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: