ConnectionConsumerAttribute.ConnectionConsumerAttribute(String, String) Constructor

Initializes a new instance of the ConnectionConsumerAttribute class, specifying a display name and an ID for the consumer connection point.

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

public:
ConnectionConsumerAttribute (
	String^ displayName, 
	String^ id
)
public ConnectionConsumerAttribute (
	String displayName, 
	String id
)
public function ConnectionConsumerAttribute (
	displayName : String, 
	id : String
)
Not applicable.

Parameters

displayName

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

id

The ID, a unique string value assigned to the consumer connection point.

Exception typeCondition

ArgumentNullException

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

The displayName parameter is a friendly name of the consumer connection point that is used by the ConnectionsZone control to represent a consumer's connection point in the UI.

The id parameter is used to specify the ID for the consumer 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 consumer control.

Windows 98, Windows Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: