Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- GeneratedCodeAttribute.cs
- QilSortKey.cs
- ColumnWidthChangedEvent.cs
- XmlRawWriter.cs
- Timer.cs
- FragmentNavigationEventArgs.cs
- CuspData.cs
- BitmapEffectRenderDataResource.cs
- BinarySerializer.cs
- VisualCollection.cs
- ExpressionPrefixAttribute.cs
- CLRBindingWorker.cs
- DataGridViewSelectedRowCollection.cs
- SafeViewOfFileHandle.cs
- ProvidePropertyAttribute.cs
- SafeEventLogReadHandle.cs
- ListViewPagedDataSource.cs
- SqlRowUpdatingEvent.cs
- WebPartEditorOkVerb.cs
- HtmlUtf8RawTextWriter.cs
- ListSortDescription.cs
- AssemblyName.cs
- ObfuscateAssemblyAttribute.cs
- X509Chain.cs
- TemplateControlBuildProvider.cs
- SqlRowUpdatedEvent.cs
- OutputCacheSettings.cs
- BindingList.cs
- SimplePropertyEntry.cs
- HtmlElement.cs
- IISUnsafeMethods.cs
- FormsAuthenticationCredentials.cs
- ServerType.cs
- ObjectViewEntityCollectionData.cs
- InkCanvasFeedbackAdorner.cs
- TimeSpanOrInfiniteValidator.cs
- SQLBinary.cs
- CngProperty.cs
- MimeMultiPart.cs
- SystemUnicastIPAddressInformation.cs
- XmlSchemaResource.cs
- Utils.cs
- NetworkInformationException.cs
- ResourcesGenerator.cs
- ProcessHostServerConfig.cs
- AssemblyBuilder.cs
- DataServiceProviderMethods.cs
- Camera.cs
- Parsers.cs
- SByteConverter.cs
- XPathAxisIterator.cs
- UnsafeCollabNativeMethods.cs
- XmlBaseReader.cs
- DataGridViewAccessibleObject.cs
- DynamicActivity.cs
- ScriptIgnoreAttribute.cs
- ColorIndependentAnimationStorage.cs
- XmlBinaryReader.cs
- LineMetrics.cs
- ConnectionInterfaceCollection.cs
- KoreanLunisolarCalendar.cs
- ComponentEvent.cs
- Encoder.cs
- BehaviorEditorPart.cs
- WorkItem.cs
- PersonalizationState.cs
- ASCIIEncoding.cs
- Psha1DerivedKeyGeneratorHelper.cs
- SHA1.cs
- BamlResourceDeserializer.cs
- InvalidCastException.cs
- BinaryObjectWriter.cs
- MultiBindingExpression.cs
- TCEAdapterGenerator.cs
- ColumnMap.cs
- String.cs
- DBSchemaRow.cs
- ScriptServiceAttribute.cs
- SystemNetHelpers.cs
- CacheRequest.cs
- Types.cs
- serverconfig.cs
- LogConverter.cs
- WindowsToolbarAsMenu.cs
- MediaSystem.cs
- OutputCacheProfile.cs
- ObjectSpanRewriter.cs
- FileNotFoundException.cs
- ResourceDisplayNameAttribute.cs
- IisTraceListener.cs
- Style.cs
- XslCompiledTransform.cs
- SQLString.cs
- WindowPattern.cs
- webclient.cs
- NotImplementedException.cs
- SecurityResources.cs
- PropertyInformationCollection.cs
- XmlComplianceUtil.cs
- AssemblyEvidenceFactory.cs