ConnectionProviderAttribute Constructor (String, Type)
Initializes a new instance of the ConnectionProviderAttribute class, specifying a display name and a specific type of connection point object to use 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).
- connectionPointType
- Type: System::Type
A Type that derives from ConnectionPoint, and that you want to specify as the type of connection point object to use with a specific callback method.
| Exception | Condition |
|---|---|
| ArgumentNullException | displayName or connectionPointType is nullptr. |
| ArgumentException | connectionPointType is not valid. |
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 connectionPointType parameter must be a Type derived from ProviderConnectionPoint. If this parameter is specified, the Type is used to create the connection point instead of the standard ProviderConnectionPoint class provided with the Web Parts control set.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.