Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- DebugInfoGenerator.cs
- BulletDecorator.cs
- TreeNodeBindingCollection.cs
- UnhandledExceptionEventArgs.cs
- PersistenceTypeAttribute.cs
- WriteFileContext.cs
- MarkupExtensionSerializer.cs
- ColumnHeaderConverter.cs
- EmptyEnumerator.cs
- SymbolDocumentInfo.cs
- SHA384.cs
- FillBehavior.cs
- TransformerInfo.cs
- ContentType.cs
- ResourceSet.cs
- StorageScalarPropertyMapping.cs
- CompositeDataBoundControl.cs
- WebDisplayNameAttribute.cs
- CapabilitiesAssignment.cs
- EditorZone.cs
- Trace.cs
- SqlDeflator.cs
- ParsedAttributeCollection.cs
- TextTreeInsertUndoUnit.cs
- ObjectStateFormatter.cs
- XamlClipboardData.cs
- ProxyWebPart.cs
- NativeCompoundFileAPIs.cs
- CopyEncoder.cs
- EndEvent.cs
- FlowNode.cs
- Matrix.cs
- ResourceFallbackManager.cs
- XmlSerializerSection.cs
- RichTextBoxAutomationPeer.cs
- ControlIdConverter.cs
- CommandField.cs
- MatrixAnimationUsingKeyFrames.cs
- CodeDelegateCreateExpression.cs
- DocumentViewer.cs
- VScrollProperties.cs
- GridItem.cs
- ObjectSecurity.cs
- RawUIStateInputReport.cs
- CoreSwitches.cs
- SafeFileMappingHandle.cs
- SessionChannels.cs
- TextEffect.cs
- NavigationExpr.cs
- Int32CAMarshaler.cs
- QilStrConcat.cs
- TraceFilter.cs
- DataServicePagingProviderWrapper.cs
- VisualStates.cs
- ServiceDescriptionReflector.cs
- NegotiateStream.cs
- PropertyPath.cs
- FrameworkRichTextComposition.cs
- MembershipPasswordException.cs
- PcmConverter.cs
- RangeBaseAutomationPeer.cs
- WebDescriptionAttribute.cs
- InheritablePropertyChangeInfo.cs
- InputLanguageEventArgs.cs
- Configuration.cs
- ContractReference.cs
- DataSourceXmlSubItemAttribute.cs
- TypeReference.cs
- XmlSchemaInfo.cs
- PeerContact.cs
- Int32.cs
- RTLAwareMessageBox.cs
- Perspective.cs
- Composition.cs
- propertyentry.cs
- LinearGradientBrush.cs
- GridProviderWrapper.cs
- Panel.cs
- UserControlFileEditor.cs
- DataSvcMapFileSerializer.cs
- InProcStateClientManager.cs
- Literal.cs
- TextInfo.cs
- Wizard.cs
- DetailsViewDeleteEventArgs.cs
- PtsHost.cs
- Visual3D.cs
- AuthenticateEventArgs.cs
- AutomationProperty.cs
- SHA512.cs
- SchemaEntity.cs
- ADConnectionHelper.cs
- MasterPageBuildProvider.cs
- TextOutput.cs
- SecurityDocument.cs
- AutomationPropertyInfo.cs
- DbModificationCommandTree.cs
- DesignerActionList.cs
- ListBindableAttribute.cs
- TransformedBitmap.cs