ProviderConnectionPoint.GetSecondaryInterfaces(Control) 方法

定義

取得提供者連接點所支援之次要介面的選擇性集合。

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

參數

control
Control

做為 Web 組件連接之提供者的控制項。

傳回

ConnectionInterfaceCollection

做為提供者之控制項所提供之其他介面的 ConnectionInterfaceCollection

備註

提供者連接點物件一律具有預設介面,可用來建立與取用者的連線。 在 物件上 ProviderConnectionPoint 呼叫 GetObject 方法,以擷取預設介面的實例。

不過,某些提供者控制項會實作多個介面,以提供給取用者作為連線的一部分。 這些介面不是用來建立連接的預設介面,稱為次要介面。 方法 GetSecondaryInterfaces 可讓您傳回次要介面的參考集合,就像方法傳回預設介面的參考一樣 GetObject

給繼承者的注意事項

類別 GetSecondaryInterfaces(Control) 中的 ProviderConnectionPoint 方法不包含實作;它會傳回次要介面的空集合。 若要實作這個方法,您必須繼承自 ProviderConnectionPoint 類別,並覆寫這個方法,並從它傳回一組特定的次要介面。

適用於