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

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

注解

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

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

备注

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

适用于

另请参阅