语言

WebPartManager.DynamicConnections 属性

定义

获取网页中当前存在的所有动态连接的集合。

protected public:
 property System::Web::UI::WebControls::WebParts::WebPartConnectionCollection ^ DynamicConnections { System::Web::UI::WebControls::WebParts::WebPartConnectionCollection ^ get(); };
protected internal System.Web.UI.WebControls.WebParts.WebPartConnectionCollection DynamicConnections { get; }
member this.DynamicConnections : System.Web.UI.WebControls.WebParts.WebPartConnectionCollection
Protected Friend ReadOnly Property DynamicConnections As WebPartConnectionCollection

属性值

一个 WebPartConnectionCollection 包含对页面上所有动态连接的引用。

注解

动态连接是以编程方式创建的连接,而不是静态创建的。 静态连接通过在 Web 窗体页的标记中声明它们来创建。 动态连接以编程方式形成,或者由用户使用连接用户界面(UI)创建连接。

集合 DynamicConnections 虽然是只读的,但不能更改其内容,但会提供对每个动态连接对象的编程访问。

注释

若要执行常见操作(如连接或断开连接 WebPart 控件),开发人员应对类使用公共方法 WebPartManager ,例如 DisconnectWebParts , ConnectWebParts而不是尝试直接修改集合中的 DynamicConnections 连接对象。

适用于

另请参阅