Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / Sys / System / Configuration / SettingsProviderCollection.cs / 1 / SettingsProviderCollection.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Configuration {
using System.Collections.Specialized;
using System.Runtime.Serialization;
using System.Configuration.Provider;
////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
public class SettingsProviderCollection : ProviderCollection
{
public override void Add(ProviderBase provider) {
if( provider == null )
{
throw new ArgumentNullException( "provider" );
}
if( !( provider is SettingsProvider ) )
{
throw new ArgumentException(SR.GetString(SR.Config_provider_must_implement_type, typeof(SettingsProvider).ToString()), "provider");
}
base.Add( provider );
}
new public SettingsProvider this[string name] {
get {
return (SettingsProvider) base[name];
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Configuration {
using System.Collections.Specialized;
using System.Runtime.Serialization;
using System.Configuration.Provider;
////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
public class SettingsProviderCollection : ProviderCollection
{
public override void Add(ProviderBase provider) {
if( provider == null )
{
throw new ArgumentNullException( "provider" );
}
if( !( provider is SettingsProvider ) )
{
throw new ArgumentException(SR.GetString(SR.Config_provider_must_implement_type, typeof(SettingsProvider).ToString()), "provider");
}
base.Add( provider );
}
new public SettingsProvider this[string name] {
get {
return (SettingsProvider) base[name];
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RegexTypeEditor.cs
- ModifierKeysValueSerializer.cs
- InstanceData.cs
- PeerFlooder.cs
- SelectionEditingBehavior.cs
- OdbcDataReader.cs
- CannotUnloadAppDomainException.cs
- CatchBlock.cs
- ObfuscationAttribute.cs
- CommandBindingCollection.cs
- ApplyHostConfigurationBehavior.cs
- ProtectedConfigurationProviderCollection.cs
- ClosableStream.cs
- hebrewshape.cs
- ExtensionMethods.cs
- DataListItemCollection.cs
- OperationContextScope.cs
- CodeCompiler.cs
- BuildProvider.cs
- PerspectiveCamera.cs
- XsltLibrary.cs
- NetworkStream.cs
- CodeDirectoryCompiler.cs
- ProvidePropertyAttribute.cs
- ElementNotAvailableException.cs
- AttachedPropertyMethodSelector.cs
- NegotiateStream.cs
- SqlDependency.cs
- FileChangesMonitor.cs
- SqlParameterCollection.cs
- CodePageUtils.cs
- IPEndPointCollection.cs
- RTLAwareMessageBox.cs
- HTTP_SERVICE_CONFIG_URLACL_KEY.cs
- NativeMethods.cs
- Util.cs
- FaultException.cs
- ProfileSettings.cs
- MimeAnyImporter.cs
- MessageFilter.cs
- SqlIdentifier.cs
- StrokeNodeOperations2.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- FontDialog.cs
- DirectoryInfo.cs
- OpCopier.cs
- PointAnimation.cs
- XmlValueConverter.cs
- RelationshipNavigation.cs
- KeySpline.cs
- ForeignKeyConstraint.cs
- EntityDataSourceSelectingEventArgs.cs
- BoundsDrawingContextWalker.cs
- StructuralType.cs
- XmlReflectionImporter.cs
- InlineCollection.cs
- XmlDesignerDataSourceView.cs
- FontUnit.cs
- SqlServices.cs
- XMLDiffLoader.cs
- HwndKeyboardInputProvider.cs
- ConfigXmlAttribute.cs
- NavigationExpr.cs
- AbandonedMutexException.cs
- VirtualPathProvider.cs
- ObjectDataSourceSelectingEventArgs.cs
- ProgressBar.cs
- ClickablePoint.cs
- ColorDialog.cs
- DispatcherObject.cs
- SharedPerformanceCounter.cs
- Size.cs
- DesignerTransactionCloseEvent.cs
- HttpListener.cs
- PointAnimationUsingPath.cs
- PerfProviderCollection.cs
- MetadataSerializer.cs
- _LocalDataStore.cs
- NetworkInterface.cs
- Token.cs
- HttpListenerContext.cs
- DataGridColumn.cs
- OpacityConverter.cs
- DbProviderFactories.cs
- ToolStripDropTargetManager.cs
- ListViewSortEventArgs.cs
- Drawing.cs
- OleDbDataReader.cs
- MemoryPressure.cs
- XmlChoiceIdentifierAttribute.cs
- xmlsaver.cs
- DurableInstanceProvider.cs
- ObjectKeyFrameCollection.cs
- KerberosRequestorSecurityTokenAuthenticator.cs
- KnownTypes.cs
- StructuredProperty.cs
- KeyValueConfigurationCollection.cs
- Invariant.cs
- FieldInfo.cs
- TextDecorationCollection.cs