System.Web.UI.WebControls.WebParts.ConnectionPoint.ID Property

Gets a string that contains the identifier for a connection point.

Syntax

public string ID { get; }

Value

Documentation for this section has not yet been entered.

Remarks

When a developer declares a System.Web.UI.WebControls.WebParts.ConnectionConsumerAttribute or a System.Web.UI.WebControls.WebParts.ConnectionProviderAttribute attribute on a method in the source code of a control, so that the method can be used as a connection point, it is not required to declare the ID parameter for the connection point attribute. The only required attribute is the displayName parameter. A default ID is assigned to the connection point, using the value from the ConnectionPoint.DefaultID field.

If there is only one method in a control being used as a connection point, it is unnecessary to specify an ID for the connection point. If there are multiple methods specified as connection points, you must specify an ID for each one; otherwise, an exception will be thrown. By assigning an ID to each connection point, you also make it possible to specify which connection point to use when you declare connections in Web pages or create them in code.

Requirements

Namespace: System.Web.UI.WebControls.WebParts
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0