e79aa3c0ed
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
46 lines
1.5 KiB
C#
46 lines
1.5 KiB
C#
//------------------------------------------------------------------------------
|
|
// <copyright file="ProtectedProviderSettings.cs" company="Microsoft">
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// </copyright>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace System.Configuration
|
|
{
|
|
using System.Collections;
|
|
using System.Collections.Specialized;
|
|
using System.Xml;
|
|
using System.Globalization;
|
|
|
|
public class ProtectedProviderSettings : ConfigurationElement
|
|
{
|
|
private ConfigurationPropertyCollection _properties;
|
|
private readonly ConfigurationProperty _propProviders =
|
|
new ConfigurationProperty(null, typeof(ProviderSettingsCollection), null, ConfigurationPropertyOptions.IsDefaultCollection);
|
|
|
|
public ProtectedProviderSettings()
|
|
{
|
|
// Property initialization
|
|
_properties = new ConfigurationPropertyCollection();
|
|
_properties.Add(_propProviders);
|
|
}
|
|
|
|
protected internal override ConfigurationPropertyCollection Properties
|
|
{
|
|
get
|
|
{
|
|
return _properties;
|
|
}
|
|
}
|
|
|
|
|
|
[ConfigurationProperty("", IsDefaultCollection = true, Options = ConfigurationPropertyOptions.IsDefaultCollection)]
|
|
public ProviderSettingsCollection Providers
|
|
{
|
|
get
|
|
{
|
|
return (ProviderSettingsCollection)base[_propProviders];
|
|
}
|
|
}
|
|
}
|
|
}
|