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
- TextBoxBase.cs
- SqlUserDefinedTypeAttribute.cs
- LinkTarget.cs
- SqlOuterApplyReducer.cs
- MeasureItemEvent.cs
- VolatileEnlistmentState.cs
- RadioButtonPopupAdapter.cs
- DSACryptoServiceProvider.cs
- IntegerFacetDescriptionElement.cs
- ScriptComponentDescriptor.cs
- Bezier.cs
- ListItemDetailViewAttribute.cs
- Activator.cs
- SQLDateTimeStorage.cs
- SqlUtils.cs
- DbProviderFactoriesConfigurationHandler.cs
- NodeFunctions.cs
- ContentType.cs
- counter.cs
- _KerberosClient.cs
- SpanIndex.cs
- ComponentConverter.cs
- BasicHttpSecurityElement.cs
- VersionValidator.cs
- TerminateSequenceResponse.cs
- WrapPanel.cs
- HuffCodec.cs
- UnauthorizedWebPart.cs
- _SslStream.cs
- NullableIntAverageAggregationOperator.cs
- MultiAsyncResult.cs
- RemotingSurrogateSelector.cs
- SiteMapNodeCollection.cs
- DeviceContext.cs
- CultureInfoConverter.cs
- IISUnsafeMethods.cs
- SchemaNotation.cs
- SHA1CryptoServiceProvider.cs
- DataRow.cs
- ThreadPool.cs
- XPathAxisIterator.cs
- IntegerValidatorAttribute.cs
- URLMembershipCondition.cs
- SqlDataReader.cs
- Evaluator.cs
- PropertyCondition.cs
- BasicCellRelation.cs
- WebPartTracker.cs
- ProcessHost.cs
- ReflectionServiceProvider.cs
- CheckBox.cs
- HostVisual.cs
- DLinqColumnProvider.cs
- AuthorizationSection.cs
- TextAutomationPeer.cs
- QilInvokeLateBound.cs
- Utils.cs
- PriorityChain.cs
- PatternMatchRules.cs
- CompilationLock.cs
- DecimalFormatter.cs
- OLEDB_Enum.cs
- CustomSignedXml.cs
- ChildDocumentBlock.cs
- TabControlCancelEvent.cs
- TextServicesHost.cs
- CollectionViewGroup.cs
- MatrixValueSerializer.cs
- WinFormsComponentEditor.cs
- Journaling.cs
- PowerStatus.cs
- ConnectionStringsExpressionBuilder.cs
- ListControl.cs
- MappingException.cs
- HtmlImageAdapter.cs
- RangeValuePattern.cs
- RpcAsyncResult.cs
- FormClosedEvent.cs
- StateInitialization.cs
- HttpCacheVary.cs
- TablePatternIdentifiers.cs
- TemplateGroupCollection.cs
- NodeInfo.cs
- KeyEventArgs.cs
- OpenTypeLayout.cs
- ModelUIElement3D.cs
- DataServiceProviderMethods.cs
- MissingManifestResourceException.cs
- LogArchiveSnapshot.cs
- RegexRunner.cs
- ContractMapping.cs
- XPathChildIterator.cs
- DataGridItemEventArgs.cs
- Rfc2898DeriveBytes.cs
- securitycriticaldataClass.cs
- InputEventArgs.cs
- HtmlShimManager.cs
- ExpressionLink.cs
- DataBindingsDialog.cs
- PathSegmentCollection.cs