Click here to Skip to main content
15,891,136 members
Articles / Web Development / IIS

SharpBITS.NET - A Wrapper for the BITS API

Rate me:
Please Sign up or sign in to vote.
4.83/5 (22 votes)
7 Oct 2010CPOL4 min read 184.6K   4.3K   137  
A BITS wrapper library for .NET 2.0.
using System;
using System.Collections.Generic;
using System.Text;

namespace SharpBits.Base
{
    public class BitsFileInfo
    {
        private BG_FILE_INFO fileInfo;

        internal BitsFileInfo(BG_FILE_INFO fileInfo)
        {
            this.fileInfo = fileInfo;
        }

        public BitsFileInfo(string remoteName, string localName)
        {
            this.fileInfo = new BG_FILE_INFO();
            this.fileInfo.RemoteName = remoteName;
            this.fileInfo.LocalName = localName;
        }

        public string RemoteName
        {
            get { return this.fileInfo.RemoteName; }
        }

        public string LocalName
        {
            get { return this.fileInfo.LocalName; }
        }


        internal BG_FILE_INFO _BG_FILE_INFO
        {
            get { return this.fileInfo; }
        }
    }
}

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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Svalbard and Jan Mayen Svalbard and Jan Mayen
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions