WebPartManagerInternals.SetIsClosed(WebPart, Boolean) 方法

定义

设置 IsClosed 控件的 WebPart 属性。

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 -> unit
Public Sub SetIsClosed (webPart As WebPart, isClosed As Boolean)

参数

webPart
WebPart

此方法为其设置 WebPart 属性的 IsClosed

isClosed
Boolean

指示 WebPart 是否已在网页上关闭的布尔值。

注解

方法 SetIsClosed 设置 IsClosedwebPart属性。 此方法实际上不会关闭 webPart;它只设置指示是否 webPart 关闭的属性。

适用于

另请参阅