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
- AspProxy.cs
- TagPrefixInfo.cs
- TraceSection.cs
- ServiceBuildProvider.cs
- EncryptedType.cs
- ConditionalAttribute.cs
- HwndHost.cs
- DataGridViewCellValueEventArgs.cs
- WindowsMenu.cs
- CompositeDataBoundControl.cs
- _TransmitFileOverlappedAsyncResult.cs
- DateTimeSerializationSection.cs
- RuntimeTransactionHandle.cs
- BindingExpression.cs
- ResourcePart.cs
- CodeCompiler.cs
- Model3DGroup.cs
- DefaultMergeHelper.cs
- Latin1Encoding.cs
- ConstraintCollection.cs
- Query.cs
- InputElement.cs
- HuffCodec.cs
- XmlUrlResolver.cs
- IdentitySection.cs
- IndexerNameAttribute.cs
- ReverseInheritProperty.cs
- RectangleGeometry.cs
- WithParamAction.cs
- SecurityPolicySection.cs
- FieldNameLookup.cs
- DataGridViewDataConnection.cs
- FrameDimension.cs
- ConditionalWeakTable.cs
- CodeEntryPointMethod.cs
- IdentifierElement.cs
- DetailsView.cs
- RenderOptions.cs
- MetaDataInfo.cs
- DataServiceProcessingPipeline.cs
- CroppedBitmap.cs
- StylusPointDescription.cs
- UiaCoreApi.cs
- Single.cs
- LoginCancelEventArgs.cs
- ProviderBase.cs
- Variant.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- CacheSection.cs
- EntryPointNotFoundException.cs
- EncodingInfo.cs
- Variable.cs
- ExpressionPrinter.cs
- CalendarDateChangedEventArgs.cs
- ChannelDemuxer.cs
- XPathNode.cs
- Int32RectValueSerializer.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- Clause.cs
- ResourceWriter.cs
- MetadataExchangeBindings.cs
- AuthenticationManager.cs
- IntSecurity.cs
- WebPartTracker.cs
- DialogResultConverter.cs
- ListParaClient.cs
- RadialGradientBrush.cs
- Command.cs
- AbstractExpressions.cs
- StorageScalarPropertyMapping.cs
- HttpPostedFileWrapper.cs
- Single.cs
- PasswordPropertyTextAttribute.cs
- IPAddressCollection.cs
- DirectoryRootQuery.cs
- shaper.cs
- LayoutEvent.cs
- ReservationNotFoundException.cs
- Matrix3DValueSerializer.cs
- PathStreamGeometryContext.cs
- CodeMemberMethod.cs
- SynchronizedKeyedCollection.cs
- CollectionMarkupSerializer.cs
- Win32MouseDevice.cs
- WindowsMenu.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- ResourcesChangeInfo.cs
- TraceSection.cs
- Helpers.cs
- PopupControlService.cs
- ScriptDescriptor.cs
- Internal.cs
- DbProviderFactoriesConfigurationHandler.cs
- HighlightVisual.cs
- OrderPreservingPipeliningMergeHelper.cs
- ZoomPercentageConverter.cs
- PartManifestEntry.cs
- PinnedBufferMemoryStream.cs
- WebPartDisplayModeCancelEventArgs.cs
- FontStyle.cs