ProviderConnectionPoint.GetSecondaryInterfaces(Control) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
可選地獲得可由提供者連接點支援的次級介面集合。
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 Parts 連線中扮演提供者的角色。
傳回
ConnectionInterfaceCollection由作為提供者的控制所提供的額外介面。
備註
提供者連接點物件總是有預設介面,用於與消費者建立連線。 透過在物件GetObject上呼叫該ProviderConnectionPoint方法,取得預設介面的實例。
然而,部分提供者控制會實作多個介面,作為連接的一部分提供給消費者。 這些介面並非建立連線的預設介面,稱為次級介面。 此 GetSecondaryInterfaces 方法提供一種回傳次要介面參考的集合,就像 GetObject 方法回傳預設介面的參考一樣。
給繼承者的注意事項
GetSecondaryInterfaces(Control)該類別中ProviderConnectionPoint的方法不包含實作;它回傳一組空的次要介面集合。 要實作此方法,你必須從 ProviderConnectionPoint 類別繼承並覆寫此方法,從中回傳特定的次要介面集合。