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
- TempFiles.cs
- ContextInformation.cs
- TextSelectionHighlightLayer.cs
- SerializationEventsCache.cs
- Span.cs
- MarginsConverter.cs
- WebServiceClientProxyGenerator.cs
- WebProxyScriptElement.cs
- StoreItemCollection.Loader.cs
- PrePrepareMethodAttribute.cs
- GraphicsContainer.cs
- EndpointDiscoveryMetadataCD1.cs
- VBCodeProvider.cs
- ChannelReliableSession.cs
- SortDescription.cs
- ValueTypeFixupInfo.cs
- TreeViewAutomationPeer.cs
- OutgoingWebRequestContext.cs
- FileNotFoundException.cs
- TableLayoutSettings.cs
- WebPartTransformerCollection.cs
- TreeNodeClickEventArgs.cs
- SHA512CryptoServiceProvider.cs
- XmlUtil.cs
- BindMarkupExtensionSerializer.cs
- AlgoModule.cs
- IndexerNameAttribute.cs
- TransportConfigurationTypeElementCollection.cs
- SymbolPair.cs
- ColumnClickEvent.cs
- StorageConditionPropertyMapping.cs
- XmlConverter.cs
- WsatConfiguration.cs
- XmlSchemaDatatype.cs
- EntityDataSourceContextDisposingEventArgs.cs
- SafeRightsManagementQueryHandle.cs
- ZoneIdentityPermission.cs
- WorkflowDesignerColors.cs
- RightsManagementLicense.cs
- mda.cs
- TableLayoutPanelCellPosition.cs
- ImageAttributes.cs
- LinkTarget.cs
- Hash.cs
- UIElementCollection.cs
- HttpResponseInternalBase.cs
- DataContractJsonSerializerOperationBehavior.cs
- ChannelBuilder.cs
- IssuedTokenParametersElement.cs
- DesignerDataTableBase.cs
- AssemblyCollection.cs
- DataBoundControl.cs
- returneventsaver.cs
- DBCommandBuilder.cs
- DataList.cs
- Control.cs
- EllipseGeometry.cs
- WriteTimeStream.cs
- PieceDirectory.cs
- ToolStripLocationCancelEventArgs.cs
- ComboBoxAutomationPeer.cs
- VisualSerializer.cs
- Visual3D.cs
- SecurityTokenRequirement.cs
- TypeForwardedFromAttribute.cs
- ManifestBasedResourceGroveler.cs
- xmlfixedPageInfo.cs
- Calendar.cs
- MatrixStack.cs
- Serializer.cs
- FactoryGenerator.cs
- ControlEvent.cs
- CodeVariableReferenceExpression.cs
- FrameworkElementFactoryMarkupObject.cs
- SpellerStatusTable.cs
- TypeConverterAttribute.cs
- ErrorWrapper.cs
- Stylesheet.cs
- XmlBindingWorker.cs
- ValidatingReaderNodeData.cs
- MultipleViewProviderWrapper.cs
- MultiView.cs
- WebChannelFactory.cs
- PointIndependentAnimationStorage.cs
- PrinterResolution.cs
- xsdvalidator.cs
- RightsManagementPermission.cs
- CompositeScriptReferenceEventArgs.cs
- ProfileGroupSettingsCollection.cs
- SqlSupersetValidator.cs
- TraceSection.cs
- Visual3D.cs
- IdentifierService.cs
- DataTableReader.cs
- WpfSharedBamlSchemaContext.cs
- DataGridViewRow.cs
- InputProviderSite.cs
- ColumnMapProcessor.cs
- ConfigurationPropertyCollection.cs
- MultiPropertyDescriptorGridEntry.cs