ProtectedConfigurationProviderCollection.Add(ProviderBase) 方法
定义
将 ProtectedConfigurationProvider 对象添加到集合中。Adds a ProtectedConfigurationProvider object to the collection.
public:
override void Add(System::Configuration::Provider::ProviderBase ^ provider);
public override void Add (System.Configuration.Provider.ProviderBase provider);
override this.Add : System.Configuration.Provider.ProviderBase -> unit
Public Overrides Sub Add (provider As ProviderBase)
参数
- provider
- ProviderBase
要添加到集合的 ProtectedConfigurationProvider 对象。A ProtectedConfigurationProvider object to add to the collection.
异常
provider
为 null
。provider
is null
.
provider
不是 ProtectedConfigurationProvider 对象。provider
is not a ProtectedConfigurationProvider object.
此集合中已存在要添加的 ProtectedConfigurationProvider 对象。The ProtectedConfigurationProvider object to add already exists in the collection.
或-or- 该集合是只读的。The collection is read-only.