AccessDataSource::ProviderName Property
.NET Framework (current version)
Gets the name of the .NET data provider that the AccessDataSource control uses to connect to a Microsoft Access database.
Assembly: System.Web (in System.Web.dll)
public: [BrowsableAttribute(false)] property String^ ProviderName { virtual String^ get() override; virtual void set(String^ value) override; }
| Exception | Condition |
|---|---|
| InvalidOperationException | An attempt was made to set the ProviderName property. |
While the AccessDataSource control exposes the ProviderName property because it is inherited from its base class, attempting to set the ProviderName property results in a NotSupportedException exception.
The following code example demonstrates how to display the ProviderName property of the AccessDataSource control in a Web Forms page.
.NET Framework
Available since 2.0
Available since 2.0
Show: