System.Web.UI.WebControls.WebParts.ProviderConnectionPoint.GetSecondaryInterfaces Method

Gets an optional collection of secondary interfaces that can be supported by a provider connection point.

Syntax

public virtual ConnectionInterfaceCollection GetSecondaryInterfaces (System.Web.UI.Control control)

Parameters

control
The control acting as the provider in a Web Parts connection.

Returns

A System.Web.UI.WebControls.WebParts.ConnectionInterfaceCollection of additional interfaces provided by the control acting as a provider.

Remarks

A provider connection point object always has a default interface that is used to establish a connection with consumers. An instance of the default interface is retrieved by calling the ProviderConnectionPoint.GetObject(System.Web.UI.Control) method on a System.Web.UI.WebControls.WebParts.ProviderConnectionPoint object.

However, some provider controls will implement multiple interfaces to provide to consumers as part of a connection. These interfaces, which are not the default ones used to establish a connection, are called secondary interfaces. The ProviderConnectionPoint.GetSecondaryInterfaces(System.Web.UI.Control) method provides a way to return a collection of references to the secondary interfaces, just as the ProviderConnectionPoint.GetObject(System.Web.UI.Control) method returns a reference to the default interface.

Requirements

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