WebPartManagerInternals.SetIsClosed(WebPart, Boolean) 方法     
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
public:
 void SetIsClosed(System::Web::UI::WebControls::WebParts::WebPart ^ webPart, bool isClosed);public void SetIsClosed(System.Web.UI.WebControls.WebParts.WebPart webPart, bool isClosed);member this.SetIsClosed : System.Web.UI.WebControls.WebParts.WebPart * bool -> unitPublic Sub SetIsClosed (webPart As WebPart, isClosed As Boolean)参数
注解
方法 SetIsClosed 设置 IsClosed 的 webPart属性。 此方法实际上不会关闭 webPart;它只设置指示是否 webPart 关闭的属性。