Click here to Skip to main content
15,885,216 members
Articles / Programming Languages / C#

SwitchNetConfig - Laptop users, quickly switch network and proxy configuration in different places

Rate me:
Please Sign up or sign in to vote.
4.66/5 (75 votes)
6 May 2004CPOL2 min read 557.6K   22.1K   199  
A handy utility for laptop users which stores network and proxy configuration as profiles and apply a profile very quickly whenever laptop goes to a different network
using System;
using System.Xml.Serialization;
using System.Collections;
namespace SwitchNetConfig
{
	/// <summary>
	/// Store a profile information.
	/// </summary>
	[XmlInclude( typeof( NICProfile ) )]
	public class Profile
	{
		#region variables

		// Name of the profile
		public string Name = string.Empty;

		// Collection of network card profile
		[XmlArrayAttribute("NICProfiles")]
		public ArrayList NICProfiles = new ArrayList();

		public IEProfile IEProfile = new IEProfile(false, string.Empty, false, string.Empty );

		#endregion

		#region Constructors

		public Profile() {}
		public Profile( string name )
		{
			Name = name;
		}

		#endregion
	}
}

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
Architect BT, UK (ex British Telecom)
United Kingdom United Kingdom

Comments and Discussions