This topic has not yet been rated - Rate this topic

ProviderConnectionPoint.GetSecondaryInterfaces Method

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

Namespace:  System.Web.UI.WebControls.WebParts
Assembly:  System.Web (in System.Web.dll)
public virtual ConnectionInterfaceCollection GetSecondaryInterfaces(
	Control control
)

Parameters

control
Type: System.Web.UI.Control

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

Return Value

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

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 GetObject method on a 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 GetSecondaryInterfaces method provides a way to return a collection of references to the secondary interfaces, just as the GetObject method returns a reference to the default interface.

Notes to Inheritors

The GetSecondaryInterfaces method in the ProviderConnectionPoint class contains no implementation; it returns an empty collection of secondary interfaces. To implement this method, you must inherit from the ProviderConnectionPoint class, and override this method, returning from it a specific set of secondary interfaces.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0

Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.