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
- IisTraceWebEventProvider.cs
- EntityDesignerDataSourceView.cs
- Pair.cs
- SuppressMessageAttribute.cs
- WebCategoryAttribute.cs
- Point.cs
- EntityKeyElement.cs
- PropertyIDSet.cs
- Util.cs
- EmptyStringExpandableObjectConverter.cs
- SeekableReadStream.cs
- WebBrowserDocumentCompletedEventHandler.cs
- SliderAutomationPeer.cs
- PropertyDescriptorCollection.cs
- ReaderWriterLockWrapper.cs
- TextBoxRenderer.cs
- UnsafeNativeMethods.cs
- HtmlElementErrorEventArgs.cs
- IResourceProvider.cs
- EntitySqlQueryCacheEntry.cs
- StringAnimationBase.cs
- TransformCryptoHandle.cs
- PhysicalFontFamily.cs
- ProfileSettings.cs
- ProfileWorkflowElement.cs
- MenuItem.cs
- VisualBrush.cs
- DbParameterHelper.cs
- FixedSOMTextRun.cs
- FreezableDefaultValueFactory.cs
- ObjectListItem.cs
- Typeface.cs
- Glyph.cs
- BamlRecordReader.cs
- DefaultDialogButtons.cs
- DataGridViewCellValidatingEventArgs.cs
- LoginView.cs
- Formatter.cs
- LayoutTableCell.cs
- ListViewItem.cs
- UnionCqlBlock.cs
- Subset.cs
- SizeConverter.cs
- ToolZone.cs
- ColumnPropertiesGroup.cs
- SafeCryptoHandles.cs
- SecurityUtils.cs
- ComponentCommands.cs
- DynamicExpression.cs
- RegistryConfigurationProvider.cs
- TextEffectResolver.cs
- DesignerActionItem.cs
- CommandID.cs
- WindowsIPAddress.cs
- UniformGrid.cs
- NumberFormatter.cs
- COM2PropertyDescriptor.cs
- Message.cs
- ContextStaticAttribute.cs
- X509Certificate2.cs
- ObjectStateManagerMetadata.cs
- ContentFilePart.cs
- ProxyGenerator.cs
- dsa.cs
- BooleanSwitch.cs
- NegotiateStream.cs
- IssuedTokenClientBehaviorsElement.cs
- MetadataArtifactLoaderComposite.cs
- InternalBufferOverflowException.cs
- TdsParameterSetter.cs
- SchemaImporterExtensionElement.cs
- BitmapEffectGroup.cs
- ExpressionEditorAttribute.cs
- CompilerResults.cs
- ProxyWebPart.cs
- AssemblyAttributes.cs
- DispatcherProcessingDisabled.cs
- SafeRsaProviderHandle.cs
- XamlGridLengthSerializer.cs
- DataBinder.cs
- XslCompiledTransform.cs
- ListBindingConverter.cs
- FormsAuthenticationEventArgs.cs
- AvTraceFormat.cs
- x509utils.cs
- ViewValidator.cs
- DefaultAssemblyResolver.cs
- SqlBulkCopyColumnMapping.cs
- RangeBase.cs
- MimeTypeMapper.cs
- EncryptedType.cs
- ErrorHandlingReceiver.cs
- EdmRelationshipRoleAttribute.cs
- BooleanAnimationBase.cs
- BigInt.cs
- PageAdapter.cs
- MobileControl.cs
- SymbolType.cs
- TableItemStyle.cs
- SystemBrushes.cs