Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Sys / System / Configuration / SettingsProviderCollection.cs / 1305376 / 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
- ParameterDataSourceExpression.cs
- RadioButton.cs
- Int32CAMarshaler.cs
- SqlDataSourceEnumerator.cs
- SecurityCriticalDataForSet.cs
- versioninfo.cs
- SecureStringHasher.cs
- MultiSelectRootGridEntry.cs
- AccessDataSourceDesigner.cs
- TileModeValidation.cs
- TypeBuilder.cs
- FormViewPagerRow.cs
- PageWrapper.cs
- SurrogateEncoder.cs
- TypeGeneratedEventArgs.cs
- HtmlControlPersistable.cs
- OdbcCommand.cs
- CreateUserWizardStep.cs
- SecurityContextTokenCache.cs
- DependencySource.cs
- Thread.cs
- OptionalColumn.cs
- Freezable.cs
- CompositeDataBoundControl.cs
- ResourceCategoryAttribute.cs
- XPathAxisIterator.cs
- DataBindingHandlerAttribute.cs
- MetadataItem.cs
- XmlObjectSerializer.cs
- Zone.cs
- RequestSecurityToken.cs
- XmlAttributeProperties.cs
- WebPartDescriptionCollection.cs
- Memoizer.cs
- Renderer.cs
- GorillaCodec.cs
- WebPartConnectionsConnectVerb.cs
- PageStatePersister.cs
- PagerSettings.cs
- UTF7Encoding.cs
- SqlResolver.cs
- CodeDomConfigurationHandler.cs
- sapiproxy.cs
- ExtendedPropertyDescriptor.cs
- OdbcConnectionStringbuilder.cs
- XPathMessageFilterElementCollection.cs
- RequiredFieldValidator.cs
- CheckableControlBaseAdapter.cs
- InternalControlCollection.cs
- Rfc2898DeriveBytes.cs
- StaticSiteMapProvider.cs
- ScriptControlManager.cs
- XmlUnspecifiedAttribute.cs
- StylusPlugin.cs
- VersionPair.cs
- Activity.cs
- SQLChars.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- RelationshipFixer.cs
- TypeKeyValue.cs
- FixedBufferAttribute.cs
- ObjectTypeMapping.cs
- TextServicesCompartmentContext.cs
- GZipDecoder.cs
- DoubleAnimationClockResource.cs
- LinkedResourceCollection.cs
- PersistNameAttribute.cs
- HttpResponseHeader.cs
- MarshalDirectiveException.cs
- shaperfactoryquerycachekey.cs
- LightweightCodeGenerator.cs
- SendMessageRecord.cs
- ProviderConnectionPoint.cs
- LongMinMaxAggregationOperator.cs
- PresentationTraceSources.cs
- MasterPageBuildProvider.cs
- DragEventArgs.cs
- XmlAggregates.cs
- Graph.cs
- TransactionManager.cs
- WpfWebRequestHelper.cs
- TableColumnCollectionInternal.cs
- CombinedGeometry.cs
- StringAnimationBase.cs
- TimeSpan.cs
- QilLiteral.cs
- PersonalizableTypeEntry.cs
- Translator.cs
- QuadraticEase.cs
- SoapAttributeOverrides.cs
- ToolZone.cs
- PersianCalendar.cs
- TextControl.cs
- SqlClientWrapperSmiStreamChars.cs
- SwitchLevelAttribute.cs
- RequestCacheEntry.cs
- InputScopeConverter.cs
- CombinedGeometry.cs
- BaseCollection.cs
- BamlResourceSerializer.cs