ProviderCollection.Add(ProviderBase) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a provider to the collection.
public:
virtual void Add(System::Configuration::Provider::ProviderBase ^ provider);
public virtual void Add (System.Configuration.Provider.ProviderBase provider);
abstract member Add : System.Configuration.Provider.ProviderBase -> unit
override this.Add : System.Configuration.Provider.ProviderBase -> unit
Public Overridable Sub Add (provider As ProviderBase)
Parameters
- provider
- ProviderBase
The provider to be added.
Exceptions
The collection is read-only.
provider
is null
.
Remarks
The Add method first checks for any exceptions (as listed in the Exceptions section), and then calls the Hashtable.Add method. It passes in the object referenced by the provider
parameter as well as the Name property of the provider to be used as the key in the Hashtable object.
Applies to
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.