This topic has not yet been rated - Rate this topic

ConnectionProviderAttribute Constructor (String, String, Type)

Initializes a new instance of the ConnectionProviderAttribute class, specifying a display name, an ID, and a specific type of connection point object to use for the provider connection point.

Namespace:  System.Web.UI.WebControls.WebParts
Assembly:  System.Web (in System.Web.dll)
public ConnectionProviderAttribute(
	string displayName,
	string id,
	Type connectionPointType
)

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.

connectionPointType
Type: System.Type

A Type that derives from ProviderConnectionPoint, and that you want to specify as the type of connection point object to use with a specific callback method.

ExceptionCondition
ArgumentNullException

displayName, id, or connectionPointType is null.

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 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.

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.

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.