This documentation is archived and is not being maintained.

ConnectionConsumerAttribute Constructor

Initializes a new instance of the ConnectionConsumerAttribute class, specifying a value to use for the connection point display name, and optionally specifying values to use for the connection point's ID, the connection point type, or both.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method ConnectionConsumerAttribute(String) Initializes a new instance of the ConnectionConsumerAttribute class, specifying a display name for the consumer connection point.
Public method ConnectionConsumerAttribute(String, String) Initializes a new instance of the ConnectionConsumerAttribute class, specifying a display name and an ID for the consumer connection point.
Public method ConnectionConsumerAttribute(String, Type) Initializes a new instance of the ConnectionConsumerAttribute class, specifying a display name and a specific type of connection point object to use for the consumer connection point.
Public method ConnectionConsumerAttribute(String, String, Type) Initializes a new instance of the ConnectionConsumerAttribute class, specifying a display name, an ID, and a specific type of connection point object to use for the consumer connection point.
Top

A consumer control can have multiple methods marked with the ConnectionConsumerAttribute metadata element. In this case, the consumer would have multiple connection points, and each instance of the ConnectionConsumerAttribute element should specify a unique ID value for the associated connection point, so that the consumer's connection points can be distinguished.

Show: