ConnectionProviderAttribute Constructor (String, Type)

Note: This constructor is new in the .NET Framework version 2.0.

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.

Namespace: System.Web.UI.WebControls.WebParts
Assembly: System.Web (in system.web.dll)

public:
ConnectionProviderAttribute (
	String^ displayName, 
	Type^ connectionPointType
)
public ConnectionProviderAttribute (
	String displayName, 
	Type connectionPointType
)
public function ConnectionProviderAttribute (
	displayName : String, 
	connectionPointType : Type
)

Parameters

displayName

A string that contains a friendly name for the provider connection point to display in the user interface (UI).

connectionPointType

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 typeCondition

ArgumentNullException

displayName or connectionPointType is a null reference (Nothing in Visual Basic).

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 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

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

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: