System.Net.FtpWebRequest Members

The members of System.Net.FtpWebRequest are listed below.

See Also: Inherited members from System.Net.WebRequest

Public Properties

ClientCertificatesSystem.Security.Cryptography.X509Certificates.X509CertificateCollection.

Gets or sets the certificates used for establishing an encrypted connection to the FTP server.

override
ConnectionGroupNamestring.

Gets or sets the name of the connection group that contains the service point used to send the current request.

override
ContentLengthlong.

Gets or sets a value that is ignored by the System.Net.FtpWebRequest class.

ContentOffsetlong.

Gets or sets a byte offset into the file being downloaded by this request.

override
ContentTypestring.

Always throws a NotSupportedException.

override
CredentialsICredentials.

Gets or sets the credentials used to communicate with the FTP server.

static
DefaultCachePolicySystem.Net.Cache.RequestCachePolicy.

Defines the default cache policy for all FTP requests.

EnableSslbool.

Gets or sets a bool that specifies that an SSL connection should be used.

override
HeadersWebHeaderCollection.

Gets an empty System.Net.WebHeaderCollection object.

KeepAlivebool.

Gets or sets a bool value that specifies whether the control connection to the FTP server is closed after the request completes.

override
Methodstring.

Gets or sets the command to send to the FTP server.

override
PreAuthenticatebool.

Always throws a NotSupportedException.

override
ProxyIWebProxy.

Gets or sets the proxy used to communicate with the FTP server.

ReadWriteTimeoutint.

Gets or sets a time-out when reading from or writing to a stream.

RenameTostring.

Gets or sets the new name of a file being renamed.

[read-only]
override
RequestUriUri.

Gets the URI requested by this instance.

[read-only]
ServicePointServicePoint.

Gets the System.Net.ServicePoint object used to connect to the FTP server.

override
Timeoutint.

Gets or sets the number of milliseconds to wait for a request.

UseBinarybool.

Gets or sets a bool value that specifies the data type for file transfers.

override
UseDefaultCredentialsbool.

Always throws a NotSupportedException.

UsePassivebool.

Gets or sets the behavior of a client application's data transfer process.

Public Methods

override
Abort()

Terminates an asynchronous FTP operation.

override
BeginGetRequestStream(AsyncCallback, object) : IAsyncResult

Begins asynchronously opening a request's content stream for writing.

override
BeginGetResponse(AsyncCallback, object) : IAsyncResult

Begins sending a request and receiving a response from an FTP server asynchronously.

override
EndGetRequestStream(IAsyncResult) : System.IO.Stream

Ends a pending asynchronous operation started with FtpWebRequest.BeginGetRequestStream(AsyncCallback, object).

override
EndGetResponse(IAsyncResult) : WebResponse

Ends a pending asynchronous operation started with FtpWebRequest.BeginGetResponse(AsyncCallback, object).

override
GetRequestStream() : System.IO.Stream

Retrieves the stream used to upload data to an FTP server.

override
GetResponse() : WebResponse

Returns the FTP server response.