ConnectionProviderAttribute Constructor (String, String)
Initializes a new instance of the ConnectionProviderAttribute class, specifying a display name and an ID for the provider connection point.
Assembly: System.Web (in System.Web.dll)
Parameters
- displayName
- Type: System::String
A string that contains a friendly name for the provider connection point to display in the user interface (UI).
- id
- Type: System::String
The ID, a unique string value assigned to the provider connection point.
| Exception | Condition |
|---|---|
| ArgumentNullException | displayName or id is nullptr. |
The displayName parameter is a friendly name of the provider connection point that is used by the ConnectionsZone control to represent a provider's connection point in the UI.
The id parameter is used to specify the ID for the provider connection point associated with the specific callback method. A control can have multiple connection points, but the id for each must be unique. Therefore, this overload of the constructor is useful if you have multiple callback methods in your provider control.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.