Click here to Skip to main content
15,894,825 members
Articles / Programming Languages / C#

An "easy to use" FTP client library

Rate me:
Please Sign up or sign in to vote.
2.61/5 (18 votes)
9 May 2006 63K   1.6K   32  
Get connected to your FTP server
using System;
using System.Collections.Generic;
using System.Text;

namespace FtpDotNet
{
    /// <summary>
    /// The delegate to be used in conjuction with the FtpConnectionEventArgs class
    /// </summary>
    public delegate void FtpConnectionEventHandler(object sender, FtpConnectionEventArgs e);

    /// <summary>
    /// Provides data for the <see cref="FtpConnection.MessageReceived">MessageReceived event</see>
    /// </summary>
    public class FtpConnectionEventArgs : EventArgs
    {
        private string mMessage;

        /// <summary>
        /// Initializes a new instance of the <see cref="FtpConnectionEventArgs"/>
        /// </summary>
        /// <param name="message">The status message to be sendt</param>
        internal FtpConnectionEventArgs(string message)
        {
            mMessage = message;
        }
        
        /// <summary>
        /// Contains status messages from the <see cref="FtpConnection"/> class during operations
        /// </summary>
        public string Message
        {
            get { return mMessage; }
        }
	
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer
Norway Norway
I'm a 39 year old software developer living in Norway.
I'm currently working for a software company making software for the retail industry.

Comments and Discussions