ProviderConnectionPoint.GetSecondaryInterfaces(Control) Método

Definição

Obtém uma coleção opcional de interfaces secundárias que podem ser compatíveis com um ponto de conexão do provedor.Gets an optional collection of secondary interfaces that can be supported by a provider connection point.

public:
 virtual System::Web::UI::WebControls::WebParts::ConnectionInterfaceCollection ^ GetSecondaryInterfaces(System::Web::UI::Control ^ control);
public virtual System.Web.UI.WebControls.WebParts.ConnectionInterfaceCollection GetSecondaryInterfaces (System.Web.UI.Control control);
abstract member GetSecondaryInterfaces : System.Web.UI.Control -> System.Web.UI.WebControls.WebParts.ConnectionInterfaceCollection
override this.GetSecondaryInterfaces : System.Web.UI.Control -> System.Web.UI.WebControls.WebParts.ConnectionInterfaceCollection
Public Overridable Function GetSecondaryInterfaces (control As Control) As ConnectionInterfaceCollection

Parâmetros

control
Control

O controle que age como o provedor em uma conexão de Web Parts.The control acting as the provider in a Web Parts connection.

Retornos

ConnectionInterfaceCollection

Uma ConnectionInterfaceCollection de interfaces adicionais fornecidas pelo controle que atua como um provedor.A ConnectionInterfaceCollection of additional interfaces provided by the control acting as a provider.

Comentários

Um objeto de ponto de conexão de provedor sempre tem uma interface padrão que é usada para estabelecer uma conexão com consumidores.A provider connection point object always has a default interface that is used to establish a connection with consumers. Uma instância da interface padrão é recuperada chamando o GetObject método em um ProviderConnectionPoint objeto.An instance of the default interface is retrieved by calling the GetObject method on a ProviderConnectionPoint object.

No entanto, alguns controles de provedor implementarão várias interfaces para fornecer aos consumidores como parte de uma conexão.However, some provider controls will implement multiple interfaces to provide to consumers as part of a connection. Essas interfaces, que não são as padrão usadas para estabelecer uma conexão, são chamadas de interfaces secundárias.These interfaces, which are not the default ones used to establish a connection, are called secondary interfaces. O GetSecondaryInterfaces método fornece uma maneira de retornar uma coleção de referências às interfaces secundárias, assim como o GetObject método retorna uma referência à interface padrão.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.

Notas aos Herdeiros

O GetSecondaryInterfaces(Control) método na ProviderConnectionPoint classe não contém nenhuma implementação; ele retorna uma coleção vazia de interfaces secundárias.The GetSecondaryInterfaces(Control) method in the ProviderConnectionPoint class contains no implementation; it returns an empty collection of secondary interfaces. Para implementar esse método, você deve herdar da ProviderConnectionPoint classe e substituir esse método, retornando-o de um conjunto específico de interfaces secundárias.To implement this method, you must inherit from the ProviderConnectionPoint class, and override this method, returning from it a specific set of secondary interfaces.

Aplica-se a