WebPartManager.Controls 属性
定义
获取包含在网页的 WebPart 区域中并由 WebPartZoneBase 控件管理的所有 WebPartManager、服务器或用户控件的集合。Gets the collection of all WebPart, server, or user controls that are contained in WebPartZoneBase zones on a Web page and are managed by the WebPartManager control.
public:
virtual property System::Web::UI::ControlCollection ^ Controls { System::Web::UI::ControlCollection ^ get(); };
public override System.Web.UI.ControlCollection Controls { get; }
member this.Controls : System.Web.UI.ControlCollection
Public Overrides ReadOnly Property Controls As ControlCollection
属性值
一个 ControlCollection,包含由 WebPartManager 控件管理的所有控件。A ControlCollection that contains all controls managed by the WebPartManager control.
注解
Controls属性不引用由控件引用的其他控件 WebPartManager ,如各种区域控件、 EditorPart CatalogPart 控件和其他控件。The Controls property does not reference the other controls that are referenced by the WebPartManager control, such as the various zone controls, EditorPart or CatalogPart controls, and others.
此属性由 Web 部件控件集使用,在大多数开发环境中,它不应从代码中调用。This property is used by the Web Parts control set, and in most development situations it is not intended to be called from your code. 出于此原因,虽然属性是公共的,但它在 IntelliSense 中是隐藏的。For this reason, although the property is public, it is hidden from IntelliSense. 要访问 WebPart 由控件管理的或其他服务器控件的集合的开发人员 WebPartManager 应使用其 WebParts 属性。Developers who want to access the collection of WebPart or other server controls managed by the WebPartManager control should use its WebParts property.